code: private String pathToProperty(String path) {
          if (path == null || !path.startsWith("/")) {
              throw new IllegalArgumentException("Path must be prefixed with a \"/\".");
          }
          return path.substring(1);
      }
docs: Converts a JSON patch path to a JSON property name.
  Currently the metadata API only supports flat maps.
  @param path the path that designates the key.  Must be prefixed with a "/".
  @return the JSON property name.