if (atomic.getType() != type) return false;
        public boolean indexInfo(Value key, long pointer)                throws TerminatedException {            AtomicValue atomic;            try {                atomic = ValueIndexFactory.deserialize(key.data(), key.start(), key.getLength());            } catch (EXistException e) {                LOG.warn(e.getMessage(), e);                return true;            }            ValueOccurrences oc = (ValueOccurrences) map.get(atomic);                        VariableByteInput is = null;            try {                is = db.getAsStream(pointer);            } catch (IOException ioe) {                LOG.warn(ioe.getMessage(), ioe);            }            if (is == null)                return true;            try {                int docId;                int len;                long gid;                DocumentImpl doc;                boolean include = true;                boolean docAdded;                while (is.available() > 0) {                    docId = is.readInt();                    len = is.readInt();                    if ((doc = docs.getDoc(docId)) == null) {                        is.skip(len);                        continue;                    }                    docAdded = false;                    gid = 0;                    for (int j = 0; j < len; j++) {                        gid += is.readLong();                        if (contextSet != null) {                            include = contextSet.parentWithChild(doc, gid, false, true) != null;                        }                        if (include) {                            if (oc == null) {                                oc = new ValueOccurrences(atomic);                                map.put(atomic, oc);                            }                            if (!docAdded) {                                oc.addDocument(doc);                                docAdded = true;                            }                            oc.addOccurrences(1);                        }                    }                }            } catch(EOFException e) {            } catch(IOException e) {                LOG.warn("Exception while scanning index: " + e.getMessage(), e);            }            return true;        }