AttributeDescriptor[] descriptors = (AttributeDescriptor[]) value;
Writer writer = new OutputStreamWriter(output, Charset.forName("UTF-8"));
// find the root of the schema location
DescribeRecordType request = (DescribeRecordType) operation.getParameters()[0];
CSWInfo csw = gs.getService(CSWInfo.class);
String schemaLocationRoot;
if (csw.isCanonicalSchemaLocation()) {
schemaLocationRoot = "http://schemas.opengis.net/csw/2.0.2";
} else {
schemaLocationRoot = buildSchemaURL(request.getBaseUrl(), "csw/2.0.2");
}
// write out the container
writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<csw:DescribeRecordResponse xmlns:csw=\"http://www.opengis.net/cat/csw/2.0.2\" "