final ReferenceLink[] referenceLinks = filePersistence
.getAllReferenceLink();
/* graph analyzing storage */
final ObjectIOManager objectIOManager = filePersistence
.getObjectIOManager();
final IHeapDataManager dataManager = filePersistence
.getDataManager();
referenceLinkGraphFromStorage = new ReferenceLinkGraph();
final Set<DataRecordIdentifier> forObjectDatarecordIdentifierSet = dataManager
.getDataRecordIdentifierSet();
forObjectDatarecordIdentifierSet
.remove(new DataRecordIdentifier(0));
Set<DataRecordIdentifier> setToUpdate = new TreeSet<DataRecordIdentifier>();
filePersistence.usedForGarbageManagement(setToUpdate);
filePersistence.usedForClassNameManagement(setToUpdate);
forObjectDatarecordIdentifierSet.removeAll(setToUpdate);
for (DataRecordIdentifier referencingDataRecordIdentifier : forObjectDatarecordIdentifierSet) {
final ObjectLinkTreeNode objectLinkTreeNode = objectIOManager
.getObjectLinkTreeNode(referencingDataRecordIdentifier);
final DataRecordIdentifier[] referencedList = objectLinkTreeNode
.getReferencedList();
referenceLinkGraphFromStorage.addReferenced(
referencingDataRecordIdentifier, referencedList);