public static Entry parse(final String path) {
      if (path.startsWith(MULTIRELEASE_PREFIX)) {
        final int nextSlash = path.indexOf('/', MULTIRELEASE_PREFIX.length());
        if (nextSlash == -1) return new Entry(path, BASE_VERSION);

        final String version = path.substring(MULTIRELEASE_PREFIX.length(), nextSlash);
        try {
          return new Entry(path.substring(nextSlash), Integer.parseInt(version));
        } catch (final NumberFormatException ex) {
          // unversioned
        }
      }

      return new Entry(path, BASE_VERSION);
    }
Parse an entry from a raw jar path.

@param path the path to parse
@return an entry, which may indicate a multirelease resource
src/org/jetbrains/java/decompiler/main/extern/IContextSource.java