if ( e instanceof InvalidProjectModelException )
{
InvalidProjectModelException ex = (InvalidProjectModelException) e;
ModelValidationResult validationResult = ex.getValidationResult();
if ( validationResult != null && validationResult.getMessageCount() > 0 )
{
for ( Iterator<String> i = validationResult.getMessages().iterator(); i.hasNext(); )
{
String valmsg = i.next();
result.addError( ContinuumProjectBuildingResult.ERROR_VALIDATION, valmsg );
messages.append( valmsg );
messages.append( "\n" );