public Element toXml(Document document) {
Element psElem = DomUtil.createElement(document, XML_PRINCIPAL_SEARCH_PROPERTY, SecurityConstants.NAMESPACE);
// create property set from the single property name
DavPropertyNameSet pnSet = new DavPropertyNameSet();
pnSet.add(propName);
psElem.appendChild(pnSet.toXml(document));
// append description if present
if (description != null) {
Element desc = DomUtil.addChildElement(psElem, XML_DESCRIPTION, SecurityConstants.NAMESPACE, description);
if (language != null) {
DomUtil.setAttribute(desc, ATTR_LANG, Namespace.XML_NAMESPACE, language);