question: protected static void printProperties ( String key , String value , PrintStream ps , Properties createdProperties ) { if ( ps != null ) { ps . println ( key + "=" + value ) ; } if ( createdProperties != null ) { createdProperties . put ( key , value ) ; } }
target:  A simple helper method that writes key-value pairs to a print stream or Properties, whatever is not null.