ListAssemblingFunctionWithIndices toList = new ListAssemblingFunctionWithIndices(2);
graph.addEdge(asIndex0, toList);
graph.addEdge(asIndex1, toList);
//Map writer = new StringFunctions( StringFunctions.Operation.concatenate, "content ", null, " filename ", null);
BoostFunction writer = new IOFunctions( IOFunctions.Operation.write);
graph.addEdge(toList, writer);
//write inputStream to doc-files/name
FunctionByEventsourceGraph<Tag, String> function = new FunctionByEventsourceGraph(graph, startNode, writer);