String outputFormat = request.getAttributeValue("outputFormat");
String schemaLanguage = request.getAttributeValue("schemaLanguage");
if (outputFormat != null && !outputFormat.equals("application/xml"))
throw new InvalidParameterValueEx("outputFormat", outputFormat);
if (schemaLanguage != null
&& !schemaLanguage.equals(Csw.SCHEMA_LANGUAGE))
throw new InvalidParameterValueEx("schemaLanguage", schemaLanguage);
//--- build output
Element response = new Element(getName() +"Response", Csw.NAMESPACE_CSW);
response.addNamespaceDeclaration(Csw.NAMESPACE_CSW);