code: public void setMapping(final Map<String, String> mapping) {
          this.uriMapping.clear();
          for (Map.Entry<String, String> entry: mapping.entrySet()) {
              Pattern pattern = Pattern.compile(entry.getKey());
              this.uriMapping.put(pattern, entry.getValue());
          }
      }
docs: Set the uri mappings.
  <p>
  The key is a regular expression that must match uri's string form. The value will be used for the
  replacement.
  
  @param mapping the uri mappings.