private static String encodePath(String rawPath) throws UnsupportedEncodingException {
        return URLEncoder.encode(rawPath, StandardCharsets.UTF_8.name())
                // Java's out-of-the-box URL encoder encodes spaces (' ') as pluses ('+'),
                // and pluses as '%2B'
                // But Jetty doesn't decode pluses at all and leaves them as-are in decoded
                // URLs
                // So to get around that, we replace pluses in the encoded URL here with '%20',
                // which is the encoding that Jetty expects for spaces
                // Jetty will reverse this transformation when evaluating the path parameters
                // and will return decoded strings with all special characters as they were.
                .replaceAll("\\+", "%20");
    }
@param config    MM2 configuration from mm2.properties file
@param clusters  target clusters for this node. These must match cluster
                 aliases as defined in the config. If null or empty list,
                 uses all clusters in the config.
@param time      time source
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorMaker.java