// When it's been added, add the index to the user profile, else, simply upldate it's md5 hash
// there.
if (parentNode.getChildByName(index.getName()) == null) {
logger.debug("Newly shared file '{}' received.", index.getName());
// file is new, link parent and new child
parentNode.addChild(index);
index.setParent(parentNode);
} else {
// copy the md5 parameter of the received file
Index existing = parentNode.getChildByName(index.getName());
if (existing.isFile() && index.isFile()) {