response.setHeader("Pragma", "no-cache");
try {
String domainName = request.getServerName();
int port = request.getServerPort();
SiteMap siteMap = new SiteMap(domainName, String.valueOf(port));
String result = siteMap.generate();
response.setContentType("text/xml; charset=UTF-8");
response.setContentLength(result.getBytes(Constants.SYSTEM_ENCODING).length);
OutputStream outputStream = response.getOutputStream();
outputStream.write(result.getBytes(Constants.SYSTEM_ENCODING));