final Long parentObjectID = parentObjectIDByReferences.remove(reference);
referenceByObjectID.remove(objectID);
if (log.isDebugEnabled()) log.debug("Removing reference on object #" + objectID);
if (parentObjectID != null) {
Txn.get().getTxnContext().save(new GC(objectID, parentObjectID));
}
}
}