docs: public static String pathJoin(final String... pathElements) {
  
          final String path;
  
          if (pathElements == null || pathElements.length == 0) {
              path = File.separator;
  
          } else {
  
              final StringBuffer sb = new StringBuffer();
  
              for (final String pathElement : pathElements) {
  
                  if (pathElement.length() > 0) {
                      sb.append(pathElement);
                      sb.append(File.separator);
                  }
              }
  
              if (sb.length() > 0) {
                  sb.deleteCharAt(sb.length() - 1);
              }
  
              path = sb.toString();
          }
  
          return (path);
      }