final String path = getPath();
final String path = getPath().toString();
	public void update(NodeList newContent) throws DOMException {		final String path = getPath();		final DocumentImpl prevDoc = new DocumentImpl(ownerDocument);		// remove old child nodes		NodeList nodes = getChildNodes();		NodeImpl child;		for (int i = 0; i < nodes.getLength(); i++) {			child = (NodeImpl) nodes.item(i);			removeAll(				child,				child.getNodeType() == Node.ELEMENT_NODE ? path + '/' + child.getNodeName() : path);		}		ownerDocument.broker.endRemove();		children = 0;		// append new content		appendChildren(firstChildID(), this, newContent, true);		ownerDocument.broker.update(this);		// reindex if required		ownerDocument.broker.reindex(prevDoc, ownerDocument, null);//		try {//			ownerDocument.broker.saveCollection(ownerDocument.getCollection());//		} catch (PermissionDeniedException e) {//			throw new DOMException(DOMException.INVALID_ACCESS_ERR, e.getMessage());//		}	}