pathID = God.archive.db.getParentPath((Long) userObject);
}
if (pathID != 0) {
fillArchiveTreeToDocumentRecursive(pathID);
}
SubPath parent = new SubPath(pathID, null);
if (userObject instanceof DocumentPath) {
if (!hasNode(userObject)) {
addNode(parent, userObject);
}
setCurrentNode(userObject);
}
else {
SubPath subpath = new SubPath((Long) userObject, God.archive.getPathName((Long) userObject));
if (!hasNode(subpath)) {
addNode(parent, subpath);
}
setCurrentNode(new SubPath((Long) userObject, null));
}
}