}
}
System.err.println("Input all set");
XBayaConfiguration conf = null;
try {
conf = getConfiguration(configurations);
conf.setTopic(topic);
conf.setRunWithCrossProduct(true);
} catch (URISyntaxException e1) {
throw new XBayaRuntimeException(e1);
}
WorkflowInterpretorEventListener listener = null;
WorkflowInterpreter interpreter = null;
if (Boolean.parseBoolean(configurations.get(WITH_LISTENER))) {
listener = new WorkflowInterpretorEventListener(workflow, conf);
interpreter = new WorkflowInterpreter(conf, topic, workflow, username, password);
try {
System.err.println("start listener set");
listener.start();
} catch (MonitorException e1) {
e1.printStackTrace();
}
} else {
interpreter = new WorkflowInterpreter(conf, topic, workflow, username, password, true);
}
WorkflowContextHeaderBuilder.setCurrentContextHeader(builder.getContextHeader());
final WorkflowInterpretorEventListener finalListener = listener;
conf.setJcrComponentRegistry(jcrComponentRegistry);
final WorkflowInterpreter finalInterpreter = interpreter;
interpreter.setActOnProvenance(provenance);
interpreter.setProvenanceWriter(runner);