protected final Property getRequiredProperty ( String name ) throws ConstraintViolationException { Property p = getProperties ( ) . getProperty ( name ) ; if ( p == null ) { throw new ConstraintViolationException ( String . format ( "Missing %s property" , name ) ) ; } return p ; }
Convenience method for retrieving a required named property .