fill(query, "ElementName", elemName);
//--- handle constraint
if (constraint != null) {
ConstraintLanguage language = ConstraintLanguage.parse(constrLang);
Element constr = new Element("Constraint", Csw.NAMESPACE_CSW);
query.addContent(constr);
if (language == ConstraintLanguage.CQL) {
addElement(constr, "CqlText", constraint);