/** Validates the model and adds error messages to the ExecutionResult */ private void validateModel(ExecutionResult result) { result.append("-> Validating the project..."); ModelUtility modelUtility = new ModelUtility(); modelUtility.validate(this.getProject(), result); if (result.isOk()) { result.append("-> Validation is OK"); } else { result.append("-> *** ERROR: The project validation FAILED! See messages above. ***"); result.append("-> *** You need to fix the issues before code can be generated. ***"); } }