private static void getPropertySetByDocument(Document doc, PropertySet set) {
		Node node = getChildByTagNameNS(doc, NS_EVENT, "propertyset");

		for (node = node.getFirstChild(); node != null; node = node.getNextSibling()) {

			if (node.getNodeType() != Node.ELEMENT_NODE) continue;

			if (! NS_EVENT.equals(node.getNamespaceURI())) continue;

			if (! "property".equals(node.getLocalName())) continue;

			Node n = node.getFirstChild();

			for (; n != null; n = n.getNextSibling()) {

				if (node.getNodeType() != Node.ELEMENT_NODE) continue;

				String name = ((Element)n).getTagName();
				Node child = n.getFirstChild();

				if (child != null) {
					String value = child.getNodeValue();
					set.put(name, value);
					break;
				}
			}
		}
	}