code: public static List<DirectoryListingEntryDTO> convertToEntries( final List<StoreResource> items )
      {
          final List<DirectoryListingEntryDTO> entries = new ArrayList<DirectoryListingEntryDTO>();
          for ( final StoreResource resource : items )
          {
              entries.add( new DirectoryListingEntryDTO( resource.getStoreKey(), resource.getPath() ) );
          }
          return entries;
      }
docs: Convert a series of {@link StoreResource}s into a DTO for use in generating browser or other directory listings.