question: public static String toJsArgsList ( Object ... aJSArgs ) { StringBuilder js = KCUtil . getThreadSafeStringBuilder ( ) ; if ( aJSArgs != null ) { int length = aJSArgs . length ; for ( int i = 0 ; i < length ; ++ i ) { Object obj = aJSArgs [ i ] ; if ( obj != null ) { if ( obj instanceof String ) { js . append ( "'" ) ; js . append ( obj . toString ( ) ) ; js . append ( "'" ) ; } else if ( obj instanceof Collection ) { JSONArray jsonarray = new JSONArray ( ( Collection ) obj ) ; js . append ( jsonarray . toString ( ) ) ; } else if ( obj instanceof Map ) { JSONObject jsonObject = new JSONObject ( ( Map ) obj ) ; js . append ( jsonObject ) ; } else { js . append ( obj . toString ( ) ) ; } } else { js . append ( "null" ) ; } if ( i < length - 1 ) { js . append ( ',' ) ; } } } return js . toString ( ) ; }
target:  args list to args string