/**
* Converts a Loni Pipeline Workflow into corresponding Taverna Workflow object.
*/
public Object visit(Pipeline pipeline){
this.pipeline = pipeline;
Workflow workflow;
String producedBy="taverna-2.3.0";
String version = "1"; //Taverna wouldn't open the file with the version less than 1
String xmlns="http://taverna.sf.net/2008/xml/t2flow";
Dataflow dataflow = (Dataflow) visit(pipeline.getPipelineModuleGroup());
workflow = new Workflow( dataflow, producedBy, version, xmlns);
this.workflow = workflow;
return workflow;
}