public String getProperty ( String category , String key , String defaultValue ) { category = ( this . compressedSpaces ? category . replaceAll ( "\\s+" , " " ) : category ) . trim ( ) ; if ( Strings . isNullOrEmpty ( category ) ) category = "Main" ; key = ( this . compressedSpaces ? key . replaceAll ( "\\s+" , " " ) : key ) . trim ( ) . replace ( " " , "_" ) ; try { return this . categories . get ( category ) . get ( key ) . replace ( "_" , " " ) ; } catch ( NullPointerException e ) { return defaultValue ; } }
Gets a property