code: public static String createPath(String... segments) {
  
      int length = 0;
      for (String s : segments) {
        if (length > 0) {
          length++;
        }
        length = length + s.length();
      }
      StringBuilder buffer = new StringBuilder(length);
      appendPath(buffer, segments);
      return buffer.toString();
    }
docs: This method creates a {@link #getPojoPath() pojo property path} specified by the given {@code segments}.
  
  @param segments is the array of properties to concat with dot (".").
  @return the resulting property path as {@link String}.