if (level >= doc.reindexRequired()) { NodeIndexListener listener = doc.getIndexListener();
if (level >= doc.getMetadata().reindexRequired()) { NodeIndexListener listener = doc.getMetadata().getIndexListener();
        public void reindex() {            if (level >= doc.reindexRequired()) {                NodeIndexListener listener = doc.getIndexListener();                if(listener != null)                    listener.nodeChanged(node);                store();                doIndex();            }        }