private void processNodes(
Node[] nodes, Process process, ProcessDescr processDescr,
ProcessBuildContext context, ProcessNodeBuilderRegistry nodeBuilderRegistry) {
for ( Node node : nodes ) {
ProcessNodeBuilder builder = nodeBuilderRegistry.getNodeBuilder( node );
if ( builder != null ) {
// only build if there is a registered builder for this node type
builder.build( process,
processDescr,
context,
node );
}
if ( node instanceof NodeContainer ) {