return build(bindings);
}
public Context build(final Map<String, Object> bindings) throws SystemException {
final JndiFactory jndiFactory = SystemInstance.get().getComponent(JndiFactory.class);
if (SystemInstance.get().hasProperty("openejb.geronimo")) {
return jndiFactory.createComponentContext(new HashMap());
}
return jndiFactory.createComponentContext(bindings);
}