public String genContent(String httpUrl) {
    Object response = null;
    for (String key : requests.keySet()) {
      if (httpUrl.endsWith(key)) {
        response = requests.get(key);
        break;
      }
    }
    if (response instanceof String) {
      return (String) response;
    }
    throw (RuntimeException) response;
  }