workItemDefinitions.add( content );
try {
WorkDefinitionsParser.parse( workItemDefinitions );
} catch ( Exception e ) {
final ValidationMessage msg = new ValidationMessage();
msg.setPath( path );
msg.setLevel( ValidationMessage.Level.ERROR );
msg.setText( e.getMessage() );
validationMessages.add( msg );
}
return validationMessages;
}