class ProjectJsonInputValidation {

	public void checkProjectId(Errors errors, ProjectJsonInput input) {
		ValidationResult projectIdValidationResult = projectIdValidation.validate(input.getName());
		if (!projectIdValidationResult.isValid()) {
			errors.rejectValue(ProjectJsonInput.PROPERTY_NAME, "api.error.projectid.invalid",
					projectIdValidationResult.getErrorDescription());

		}
	}

}