sharedIndex.setParent(userProfile.getRoot());
profileManager.readyToPut(userProfile, pid);
logger.debug("Added the newly shared folder to the own user profile.");
/** 2. Notify others that files are available */
notifyOtherClients(new UploadNotificationMessageFactory(sharedIndex, null));
logger.debug("Notified other client that new (shared) files are available for download.");
/** 3. download the files that are now available */
List<Index> fileList = Index.getIndexList(sharedIndex);
// the folder itself is also contained, so remove it