question: private void addListParameter ( DaemonParameters parameters , String parameterName , List < String > list ) { int i = 0 ; if ( list == null || list . size ( ) == 0 ) { return ; } StringBuilder listJSON = new StringBuilder ( ) ; listJSON . append ( "[" ) ; for ( String item : list ) { if ( i != 0 ) { listJSON . append ( "," ) ; } listJSON . append ( "\"" + item + "\"" ) ; i ++ ; } listJSON . append ( "]" ) ; parameters . setParameter ( parameterName , listJSON . toString ( ) ) ; }
target:  Adds a list of string parameter to the daemon parameters.