code: public static URL extractJarURL(URL url) throws IOException {
          JarURLConnection connection = (JarURLConnection) url.openConnection();
          return connection.getJarFileURL();
      }
docs: Extract URL part that corresponds to jar portion of the given url.