String key = delegator.getDelegatorName() + ":" + pkg + ":" + pkver + ":" + pid + ":" + pver;
if (!wfProcessMgrCache.containsKey(key)) {
synchronized (WfFactory.class) {
if (!wfProcessMgrCache.containsKey(key)) {
wfProcessMgrCache.put(key, new WfProcessMgrImpl(delegator, pkg, pkver, pid, pver));
}
}
}
return (WfProcessMgr) wfProcessMgrCache.get(key);
}