if (site == null) {
throw new WebApplicationException(Status.NOT_FOUND);
}
// Create the response
String siteXml = site.toXml();
siteXml = siteXml.replaceAll("<password.*</password>", "");
siteXml = siteXml.replaceAll("( xmlns.*?>)", ">");
siteXml = ConfigurationUtils.processTemplate(siteXml, site, environment);
ResponseBuilder response = Response.ok(siteXml);
return response.build();