class ProjectJsonInputValidation {

	public void checkOwnerUserId(Errors errors, ProjectJsonInput input) {
		ValidationResult userIdValidationResult = userIdValidation.validate(input.getOwner());
		if (!userIdValidationResult.isValid()) {
			errors.rejectValue(ProjectJsonInput.PROPERTY_OWNER, "api.error.userid.invalid",
					userIdValidationResult.getErrorDescription());

		}
	}

}