HttpServletResponse response = request.getHttpResponse();
response.setContentType("application/xml");
//response.setCharacterEncoding( "UTF-8" );
OWSConfiguration configuration = new OWSConfiguration();
Encoder encoder = new Encoder(configuration, configuration.schema());
encoder.setIndenting(true);
encoder.setIndentSize(2);
encoder.setLineWidth(60);
String schemaLocation = buildSchemaURL(baseURL(request.getHttpRequest()), "ows/1.1.0/owsAll.xsd");