try {
this.process = delegator.findByPrimaryKey(org.ofbiz.shark.SharkConstants.WfProcess, UtilMisc.toMap(org.ofbiz.shark.SharkConstants.processId, processId));
} catch (GenericEntityException e) {
Debug.logError("Invalid delegator object passed", module);
e.printStackTrace();
throw new PersistenceException(e);
}
} else {
Debug.logError("Invalid delegator object passed", module);
}
}