try {
ItemStateManager ism = getContext().getItemStateManager();
Iterator it = removedNodeIds.iterator();
while (it.hasNext()) {
NodeId id = (NodeId) it.next();
aggregateUUIDs = aggregateUUIDs.createTerm(
id.getUUID().toString());
tDocs.seek(aggregateUUIDs);
while (tDocs.next()) {
Document doc = reader.document(tDocs.doc(), FieldSelectors.UUID);
String uuid = doc.get(FieldNames.UUID);