code: private String getXmlError(final String errorCode, final String errorMessage) {
          Map<String, Object> data = new HashMap<String, Object>();
          data.put("errorCode", StringEscapeUtils.escapeXml(errorCode));
          data.put("errorMessage", StringEscapeUtils.escapeXml(errorMessage));
          // fake a random UUID as request ID
          data.put("requestID", UUID.randomUUID().toString());
  
          String ret = null;
  
          try {
              ret = TemplateUtils.get(ERROR_RESPONSE_TEMPLATE, data);
          } catch (AwsMockException e) {
              log.error("fatal exception caught: {}", e.getMessage());
              e.printStackTrace();
          }
          return ret;
      }
docs: Generate error response body in xml and write it with writer.
  
  @param errorCode
  the error code wrapped in the xml response
  @param errorMessage
  the error message wrapped in the xml response
  @return xml body for an error message which can be recognized by AWS clients