code: public Map<String, String> getPathParametersEncoded(String uri) {
          Map<String, String> map = Maps.newHashMap();
  
          Matcher m = regex.matcher(uri);
  
          if (m.matches()) {
              Iterator<String> it = this.parameters.keySet().iterator();
              for (int i = 1; i < m.groupCount() + 1; i++) {
                  String parameterName = it.next();
                  map.put(parameterName, m.group(i));
              }
          }
          
          return map;
      }
docs: This method does not do any decoding / encoding.
  
  If you want to decode you have to do it yourself.
  
  Most likely with:
  http://docs.oracle.com/javase/6/docs/api/java/net/URI.html
  
  @param uri The whole encoded uri.
  @return A map with all parameters of that uri. Encoded in => encoded out.