// create NodeForObject for each NodeInfo
for (NodeInfo nodeInfo : map.values()) {
NodeForObject nodeForObject = nodeInfo.nodeForObject;
if (nodeForObject == null) {
final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
final NodeIdentifier identifier = nodeForObjectTO.getId();
nodeForObject = new NodeForObject(null, identifier,
nodeForObjectTO.getIdentityHashCode(),
nodeForObjectTO.getObjectClassName(),
nodeForObjectTO.isMarkedNew(),
nodeForObjectTO.isMarkedNewSon(),
nodeForObjectTO.getFieldByChildNodeIdMap(),
nodeForObjectTO.getFieldIsStaticMap(),
nodeForObjectTO.getObjectSize());
nodeInfo.nodeForObject = nodeForObject;
nodeForObjectModel.add(nodeForObject);
} else {
throw new MemInspectorException("node object must not be set");
}
}
// create father link
for (NodeInfo nodeInfo : map.values()) {
NodeForObject nodeForObject = nodeInfo.nodeForObject;
if (nodeForObject == null) {
throw new MemInspectorException("node object must be set");
}
final NodeForObjectTO nodeForObjectTO = nodeInfo.nodeForObjectTO;
final NodeIdentifier mainFatherId = nodeForObjectTO
.getMainFatherNodeId();
final NodeForObject mainFatherNode;
if (mainFatherId == null) {
mainFatherNode = null;
} else {