question: private void writeToTableAndCsv ( TabularResultData metricsTable , String type , String metricName , long metricValue , StringBuilder csvBuilder ) { metricsTable . accumulate ( CliStrings . SHOW_METRICS__TYPE__HEADER , type ) ; metricsTable . accumulate ( CliStrings . SHOW_METRICS__METRIC__HEADER , metricName ) ; metricsTable . accumulate ( CliStrings . SHOW_METRICS__VALUE__HEADER , metricValue ) ; if ( csvBuilder != null ) { csvBuilder . append ( type ) ; csvBuilder . append ( ',' ) ; csvBuilder . append ( metricName ) ; csvBuilder . append ( ',' ) ; csvBuilder . append ( metricValue ) ; csvBuilder . append ( '\n' ) ; } }
target:  Writes an entry to a TabularResultData and writes a comma separated entry to a string builder