// This one is for debuggin in case something below fails.
XMLUtil.saveXML(workflow.toXML(), new File(this.temporalDirectory, filename + "-0.xwf"));
// Create BPEL
BPELScript bpel = new BPELScript(workflow);
bpel.create(BPELScriptType.GPEL);
GpelProcess gpelProcess = bpel.getGpelProcess();
WorkflowWSDL workflowWSDL = bpel.getWorkflowWSDL();
WsdlDefinitions definitions = workflowWSDL.getWsdlDefinitions();
File bpelFile = new File(this.temporalDirectory, filename + XBayaConstants.BPEL_SUFFIX);