public static void setProperty ( Properties props , String key , String value ) { if ( value == null ) { return ; } if ( value . trim ( ) . length ( ) < 1 ) { return ; } props . setProperty ( key , value ) ; }
Mutates the passed Properties props variable . Puts the key value into the Map if the value is not null and is not empty .