public static XMLContainer forNode( OzoneInterface _db, Node _pNode ) throws Exception {
if (!(_pNode instanceof OzoneProxy)) {
throw new IllegalArgumentException("Not a persistent DOM node: " + _pNode.getClass().getName());
}
DocumentProxy pDoc = _pNode instanceof Document
? (DocumentProxy)_pNode
: (DocumentProxy)_pNode.getOwnerDocument();
XMLContainerHelper helper = (XMLContainerHelper)pDoc.getContainer();
return helper != null ? new XMLContainer( _db, helper ) : null;
}