// Set content type based on markup type for page
    response.setContentType("text/xml; charset=" + encoding);
    // Make sure it is not cached by a client
    response.disableCaching();
    try
    {
      final StringResponse bodyResponse = new StringResponse();
      constructResponseBody(bodyResponse, encoding);