FolderIndex oldParent = movedNode.getParent();
oldParentKey = oldParent.getFileKeys().getPublic();
// source's parent needs to be updated, no matter if it's root or not
oldParent.removeChild(movedNode);
// add to the new parent
FolderIndex newParent = (FolderIndex) userProfile.getFileByPath(context.getDestination()
.getParentFile(), networkManager.getSession().getRoot());
movedNode.setParent(newParent);