private static void checkNodesExistence ( Model mo , Collection < Node > ns ) throws SchedulerModelingException { for ( Node node : ns ) { if ( ! mo . getMapping ( ) . contains ( node ) ) { throw new SchedulerModelingException ( mo , "Unknown node '" + node + "'" ) ; } } }
Check for the existence of nodes in a model