module.getComponents().add(component);
configuration = (ContextFactory<Context>) component.getContextFactory();
if (configuration == null) {
ConfigurationException e = new MissingContextFactoryException("Context factory not set");
e.setIdentifier(component.getName());
e.addContextName(getName());
throw e;
}
registerConfiguration(configuration);
if (component instanceof ModuleComponent) {
registerAutowire((ModuleComponent) component);