code: public static DocumentPath from(String path) {
      if (path.equals(ROOT_PATH)) {
        return ROOT;
      }
      return new DocumentPath(Arrays.asList(path.split(PATH_SEPARATOR)));
    }
docs: Creates a new {@code DocumentPath} from a period delimited path string.
  
  @param path path string
  @return {@code DocumentPath} instance