try {
procDefDir = workflowService.processDefinitionDirectory();
procDir = workflowService.processDirectory();
ProcessMgr pmgr = procDefDir.processMgr ("jstests", "testReplacer");
WfProcess process
= pmgr.createProcess(new DefaultRequester (workflowService));
process.start();
assertTrue (stateReached (process, "closed.completed"));
SAXContentBuffer xmlRes = (SAXContentBuffer)
process.processContext().get("XMLResult");
Node resRoot = xmlRes.toW3cDom();