if ( sd.isStateless() ) {
container = new StatelessSessionContainer(ejbDescriptor, loader);
} else {
//container = new StatefulSessionContainer(ejbDescriptor, loader);
BaseContainerBuilder builder =
new StatefulContainerBuilder();
builder.buildContainer(ejbDescriptor, loader,
dynamicConfigContext);
container = builder.getContainer();
//containers.put(ejbDescriptor.getUniqueId(), container);
//builder.completeInitialization(sm);
}
} else if ( ejbDescriptor instanceof EjbMessageBeanDescriptor ) {
container = new MessageBeanContainer(ejbDescriptor, loader);