code: @SuppressWarnings("PMD.PreserveStackTrace")
      private Map<String, String> findParameters(URI location) throws MalformedURLException {
          final Map<String, String> params;
          try {
              params = URISupport.parseParameters(location);
          } catch (final URISyntaxException e) {
              throw new MalformedURLException(e.getMessage());
          }
          return params;
      }
docs: Extract the query string from a connection URI into a Map