private ContextFactory<Context> createConfiguration(String name) throws BuilderException, ConfigurationLoadException {
PolicyBuilderRegistry policyRegistry = new DefaultPolicyBuilderRegistry();
WireFactoryService wireService = new DefaultWireFactoryService(new MessageFactoryImpl(), new JDKWireFactoryFactory(), policyRegistry);
JavaContextFactoryBuilder builder = new JavaContextFactoryBuilder(wireService);
AtomicComponent component = MockFactory.createComponent(name, ModuleScopeInitDestroyComponent.class,
Scope.MODULE);
ComponentTypeIntrospector introspector = MockFactory.getIntrospector();
ComponentType type = introspector.introspect(ModuleScopeInitDestroyComponent.class);
component.getImplementation().setComponentType(type);
builder.build(component);
return (ContextFactory<Context>) component.getContextFactory();
}