code: public static String buildFormPostContent(final WebContext context) {
          final String requestedUrl = context.getFullRequestURL();
          final Map<String, String[]> parameters = context.getRequestParameters();
          final StringBuilder buffer = new StringBuilder();
          buffer.append("<html>\n");
          buffer.append("<body>\n");
          buffer.append("<form action=\"" + escapeHtml(requestedUrl) + "\" name=\"f\" method=\"post\">\n");
          if (parameters != null) {
              for (final Map.Entry<String, String[]> entry : parameters.entrySet()) {
                  final String[] values = entry.getValue();
                  if (values != null && values.length > 0) {
                      buffer.append("<input type='hidden' name=\"" + escapeHtml(entry.getKey()) + "\" value=\"" + values[0] + "\" />\n");
                  }
              }
          }
          buffer.append("<input value='POST' type='submit' />\n");
          buffer.append("</form>\n");
          buffer.append("<script type='text/javascript'>document.forms['f'].submit();</script>\n");
          buffer.append("</body>\n");
          buffer.append("</html>\n");
          return buffer.toString();
      }
docs: Build a form POST content from the web context.
  
  @param context the web context
  @return the form POST content