question: public void addOptionIfValueNonEmpty ( String option , String value ) { if ( value != null && ! value . isEmpty ( ) ) { addOption ( option , value ) ; } }
target:  Adds the option only if value is a non-null, non-empty String