if (beanContext == null)
{
StatefulContainer container = (StatefulContainer)Ejb3Registry.getContainer(containerId);
// We are willing to accept a context that has been marked as removed
// as it can still hold nested children
beanContext = container.getCache().get(oid, false);
}
return beanContext;