docs: @Trivial
      public static URL extractEmbeddedURL(URL url) throws MalformedURLException {
          if (url == null) {
              return null;
          }
  
          if (!url.getProtocol().equalsIgnoreCase(WSJPA_PROTOCOL_NAME)) {
              throw new IllegalArgumentException("The specified URL \"" + url +
                                                 "\" does not use the \"" + WSJPA_PROTOCOL_NAME + "\" protocol.");
          }
  
          String encodedPath = url.getPath();
          if (encodedPath == null || encodedPath.trim().equals("")) {
              throw new IllegalArgumentException("The specified URL \"" + url + "\" is missing path information.");
          }
  
          final String decodedPath = decode(encodedPath);
  
          try {
              return AccessController.doPrivileged(new PrivilegedExceptionAction<URL>() {
                  @Override
                  @Trivial
                  public URL run() throws MalformedURLException {
                      return new URL(decodedPath);
                  }
              });
          } catch (PrivilegedActionException e) {
              throw (MalformedURLException) e.getException();
          }
      }