for ( int index = 0; !error && index < ruleParserContent.getNodes().size(); index++ ) {
final Node node = ruleParserContent.getNodes().get( index );
switch ( index ) {
case 0:
if ( !( node instanceof TypeNode ) ) {
ruleParserContent.getMessages().add( new InvalidRootParserMessage() );
error = true;
break;
}
final TypeNode root = (TypeNode) node;
if ( model.getRoot() == null ) {