/**
  * This method "normalizes" the paths back to the "level" from where the original item was
  * requested.
  */
 protected void correctPaths(Collection<StorageItem> list) {
   for (StorageItem item : list) {
     if (getPath().endsWith(RepositoryItemUid.PATH_SEPARATOR)) {
       ((AbstractStorageItem) item).setPath(getPath() + item.getName());
     } else {
       ((AbstractStorageItem) item)
           .setPath(getPath() + RepositoryItemUid.PATH_SEPARATOR + item.getName());
     }
   }
 }