ModuleDescriptor sinkDescriptor = new ModuleDescriptor.Builder()
.setModuleDefinition(sinkDefinition)
.setGroup("compositesinkgroup")
.build();
ModuleDefinition composed = ModuleDefinitions.composed("compositesink", ModuleType.sink,
"processor1 | processor2 | sink",
Arrays.asList(processor1Definition, processor2Definition, sinkDefinition));
//parser results being reversed, we emulate here
List<ModuleDescriptor> children = Arrays.asList(sinkDescriptor, processor2Descriptor, processor1Descriptor);