code: protected static String getArray(List<String> paths) {
          StringBuilder builder = new StringBuilder();
  
          for (String s : paths) {
              if (builder.length() == 0) {
                  builder.append(s);
              } else {
                  builder.append(",").append(s);
              }
          }
  
          return builder.toString();
      }
docs: Compute a String form the given list of paths. The list uses comma as separator.
  
  @param paths the list of path
  @return the computed String