WorkflowClient wfClient = null;
WorkflowContext context = null;
String topic = UUID.randomUUID().toString();
context = new GPELWorkflowContext(topic, userName, password);
wfClient = new GPELWorkflowClient(context, workflow);
wfClient.init();
try {
System.out.println(workflow.getGPELTemplateID());
context.prepare(wfClient, workflow);