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;
if ( endNode.getFrom() == null ) {
errors.add( new RuleFlowProcessValidationErrorImpl( RuleFlowProcessValidationError.END_NODE_HAS_NO_INCOMING_CONNECTIONS ) );
}
} else if ( node instanceof RuleSetNode ) {
final RuleSetNode ruleSetNode = (RuleSetNode) node;
if ( ruleSetNode.getFrom() == null ) {