scope.stop();
}
private List<ContextFactory<Context>> createConfigurations() throws BuilderException, ConfigurationLoadException {
WireFactoryService wireService = new DefaultWireFactoryService(new MessageFactoryImpl(), new JDKWireFactoryFactory(), new DefaultPolicyBuilderRegistry());
JavaContextFactoryBuilder builder = new JavaContextFactoryBuilder(wireService);
AtomicComponent component = MockFactory.createComponent("TestService1", SessionScopeComponentImpl.class, Scope.SESSION);
ComponentTypeIntrospector introspector = MockFactory.getIntrospector();
ComponentType type = introspector.introspect(SessionScopeComponentImpl.class);
component.getImplementation().setComponentType(type);
builder.build(component);
List<ContextFactory<Context>> configs = new ArrayList<ContextFactory<Context>>();
configs.add((ContextFactory<Context>) component.getContextFactory());
return configs;
}