code: public static String applyUriReplace(String uriSource, Configuration conf) {
          if (uriSource == null) return null;
          String[] uriReplace = conf.getStrings(OUTPUT_URI_REPLACE);
          if (uriReplace == null) return uriSource;
          for (int i = 0; i < uriReplace.length - 1; i += 2) {
              String replacement = uriReplace[i+1].trim();
              replacement = replacement.substring(1, replacement.length()-1);
              uriSource = uriSource.replaceAll(uriReplace[i], replacement);
          }
          return uriSource;
      }
docs: Apply URI replacement configuration option to a URI source string.  The
  configuration option is a list of comma separated pairs of regex
  patterns and replacements.  Validation of the configuration is done at
  command parsing time.
  
  @param uriSource
  @param conf
  @return result URI string