Node node = doc.getNode(gid);
Node node = proxy.doc.getNode(proxy);
	protected final static boolean isOfType(		DocumentImpl doc,		long gid,		short type,		TypeTest test) {		if (test.getNodeType() == Constants.NODE_TYPE)			return true;		if (type == Constants.TYPE_UNKNOWN) {			Node node = doc.getNode(gid);			if (node == null)				return false;			type = node.getNodeType();		}		return isOfType(type, test);	}