if (!(jndiContext.lookup("openejb/local") instanceof Context)
|| !(jndiContext.lookup("openejb/remote") instanceof Context)
|| !(jndiContext.lookup("openejb/client") instanceof Context)
|| !(jndiContext.lookup("openejb/Deployment") instanceof Context)
|| !(jndiContext.lookup("openejb/global") instanceof Context)) {
throw new OpenEJBRuntimeException("core openejb naming context not properly initialized. It must have subcontexts for openejb/local, openejb/remote, openejb/client, and openejb/Deployment already present");
}
}
catch (javax.naming.NamingException exception) {
throw new OpenEJBRuntimeException("core openejb naming context not properly initialized. It must have subcontexts for openejb/local, openejb/remote, openejb/client, and openejb/Deployment already present", exception);
}
SystemInstance.get().setComponent(JndiFactory.class, jndiFactory);
}