boolean endNodeFound = false;
final Node[] nodes = process.getNodes();
for ( int i = 0; i < nodes.length; i++ ) {
final Node node = nodes[i];
if ( node instanceof StartNode ) {
final StartNode startNode = (StartNode) node;
startNodeFound = true;
if ( startNode.getTo() == null ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.START_NODE_WITHOUT_OUTGOING_NODES ) );
}
} else if ( node instanceof EndNode ) {
final EndNode endNode = (EndNode) node;
endNodeFound = true;