try {
// Do not use EJBUtil here because we do not want
// de.danet.an.workflow.api to depend on other packes
// than de.danet.an.workflow.omgcore
Object objref = serverContext.lookup(homeName);
WorkflowEngineHome wfeh
= (WorkflowEngineHome)PortableRemoteObject.narrow
(objref, WorkflowEngineHome.class);
WorkflowEngine wfe = wfeh.create();
WorkflowService service = new StandardWorkflowService
(recoveryProps, serverContext, wfe);
return service;
} catch (NamingException e) {
logger.error (e.getMessage (), e);