code: private String getPathVariables(final Map<String, Object> map) {
          final StringBuilder bpath = new StringBuilder();
          for (Map.Entry<String, Object> param : map.entrySet()) {
              if (bpath.length() > 1) {
                  bpath.append("&");
              }
              try {
                  bpath.append(URLEncoder.encode(param.getKey(), String.valueOf(StandardCharsets.UTF_8))).append("=").append(URLEncoder.encode(String.valueOf(param.getValue()), String.valueOf(StandardCharsets.UTF_8)));
              } catch (UnsupportedEncodingException exception) {
                  // Do nothing
              }
          }
          return bpath.toString();
      }
docs: Build a path variable for GET requests
  
  @param map map for getting path variables
  @return String