if (mProps.containsKey(propName)) { e = parent.addElement(propName); if (!nameOnly) e.setText(mProps.get(propName));
ResourceProperty prop = mProps.get(propName); if (prop != null) { e = prop.addToElement(parent, nameOnly); return e;
	public Element addPropertyElement(Element parent, String propName, boolean nameOnly) {		Element e = null;				if (mProps.containsKey(propName)) {			e = parent.addElement(propName);			if (!nameOnly)				e.setText(mProps.get(propName));		}				// protected properties		if (propName.equals(DavElements.P_LOCKDISCOVERY))			for (LockMgr.Lock lock : LockMgr.getInstance().getLocks(this))				e = addActiveLockElement(parent, lock);				return e;	}