# beforePrototypeCreation method

1. @protected

void beforePrototypeCreation(

1. String name

)

Marks a prototype pod as being created to detect circular dependencies.

This method should be called before starting the creation of a prototype pod.

`name` the name of the pod being created

## Implementation

    @protected
    void beforePrototypeCreation(String name) {
    		Object? val = _prototypesCurrentlyInCreation.get();

    		if (val == null) {
    			_prototypesCurrentlyInCreation.set(name);
    		} else if (val is String) {
    			Set<String> podNameSet = HashSet<String>();

    			podNameSet.add(val);
    			podNameSet.add(name);
    			_prototypesCurrentlyInCreation.set(podNameSet);
    		} else {
    			Set<String> podNameSet = val as Set<String>;
    			podNameSet.add(name);
    		}
    	}