public String mapValidationAnnotation ( String annotation , String defaultAnnotation ) { String key = "validation.annotation." + toFirstUpper ( annotation ) ; if ( hasProperty ( key ) ) { return getProperty ( key ) ; } else { return defaultAnnotation ; } }
Gets a single validation annotation from properties .