private Map<URI,FileShare> queryFileShares(final List<FileDescriptor> fileShareDescriptors){
  List<URI> fileShareURIs=FileDescriptor.getFileSystemURIs(fileShareDescriptors);
  List<FileShare> fileShares=dbClient.queryObject(FileShare.class,fileShareURIs);
  Map<URI,FileShare> fileShareMap=new HashMap<URI,FileShare>();
  for (  FileShare fileShare : fileShares) {
    if (fileShare != null) {
      fileShareMap.put(fileShare.getId(),fileShare);
    }
  }
  return fileShareMap;
}

private Map < URI , FileShare > queryFileShares ( final List < FileDescriptor > fileShareDescriptors ) { List < URI > fileShareURIs = FileDescriptor . getFileSystemURIs ( fileShareDescriptors ) ; List < FileShare > fileShares = dbClient . queryObject ( FileShare . class , fileShareURIs ) ; Map < URI , FileShare > fileShareMap = new HashMap < URI , FileShare > ( ) ; for ( FileShare fileShare : fileShares ) { if ( fileShare != null ) { fileShareMap . put ( fileShare . getId ( ) , fileShare ) ; } } return fileShareMap ; }
convenience method to build a map of uri ' s to their respective fileshares based on a list of filedescriptor .
