LOGGER.debug("Running blueprint container for bundle {} in state {}", bundleContext.getBundle().getSymbolicName(), state);
switch (state) {
case Unknown:
readDirectives();
eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.CREATING, getBundleContext().getBundle(), getExtenderBundle()));
parser = new Parser();
parser.parse(getResources());
namespaces = parser.getNamespaces();
handlerSet = handlers.getNamespaceHandlers(namespaces, getBundleContext().getBundle());
handlerSet.addListener(this);
state = State.WaitForNamespaceHandlers;