private ProcessDefinition procDef () throws RemoteException {
ProcessDefinitionDirectory pdd = null;
try {
if (processKey == null) {
pdd = pddHome.create();
return pdd.lookupProcessDefinition(packageId, processId);
} else {
Process proc = processHome.findByProcessKey(processKey);
return proc.processDefinition();
}
} catch (InvalidKeyException ivke) {