nodeB.connectInput("in1", 0, connection);
Connection connection2 = new TeeConnection();
nodeA.connectOutput("out2", 0, connection2);
nodeB.connectInput("in2", 0, connection2);
Map<String, Variable> variables = new HashMap<String, Variable>();
variables.put("query", new Variable(new ProcessingElementType("uk.org.ogsadai.SQLQuery"), nodeA));
variables.put("results", new Variable(new ProcessingElementType("eu.admire.Results"), nodeB));
String dot = DotGenerator.generate(graph.getNodes(), variables);
writeFile(dot);
System.out.println(dot);
}