public String getSingleValue ( final String propertyName ) { Preconditions . checkNotNull ( propertyName ) ; List < String > values = getValues ( propertyName ) ; if ( values == null || values . size ( ) < 1 ) { return null ; } return values . get ( 0 ) ; }
A helper method for getting the value of single valued properties . Returns null if the property does not exist .