docs: @Trivial
      public static URL createWSJPAURL(URL url) throws MalformedURLException {
          if (url == null) {
              return null;
          }
  
          // Encode the URL to be embedded into the wsjpa URL's path
          final String encodedURLPathStr = encode(url.toExternalForm());
  
          URL returnURL;
          try {
              returnURL = AccessController.doPrivileged(new PrivilegedExceptionAction<URL>() {
                  @Override
                  @Trivial
                  public URL run() throws MalformedURLException {
                      return new URL(WSJPA_PROTOCOL_NAME + ":" + encodedURLPathStr);
                  }
              });
          } catch (PrivilegedActionException e) {
              throw (MalformedURLException) e.getException();
          }
  
          return returnURL;
      }