code: private String decodeIfEncoded(String value) {
      if (StringUtils.contains(value, "%")) {
        try {
          return URLDecoder.decode(value, CharEncoding.UTF_8);
        }
        catch (UnsupportedEncodingException ex) {
          throw new RuntimeException(ex);
        }
      }
      return value;
    }
docs: URL-decode value if required.
  @param value Probably encoded value.
  @return Decoded value