private Map<URI,StorageSystem> buildArrayMap(List<VolumeDescriptor> descriptors,VolumeDescriptor.Type type){
  Map<URI,StorageSystem> arrayMap=new HashMap<URI,StorageSystem>();
  if (type != null) {
    descriptors=VolumeDescriptor.filterByType(descriptors,new VolumeDescriptor.Type[]{type},new VolumeDescriptor.Type[]{});
  }
  for (  VolumeDescriptor desc : descriptors) {
    if (arrayMap.containsKey(desc.getDeviceURI()) == false) {
      StorageSystem array=getDataObject(StorageSystem.class,desc.getDeviceURI(),_dbClient);
      arrayMap.put(desc.getDeviceURI(),array);
    }
  }
  return arrayMap;
}

private Map < URI , StorageSystem > buildArrayMap ( List < VolumeDescriptor > descriptors , VolumeDescriptor . Type type ) { Map < URI , StorageSystem > arrayMap = new HashMap < URI , StorageSystem > ( ) ; if ( type != null ) { descriptors = VolumeDescriptor . filterByType ( descriptors , new VolumeDescriptor . Type [ ] { type } , new VolumeDescriptor . Type [ ] { } ) ; } for ( VolumeDescriptor desc : descriptors ) { if ( arrayMap . containsKey ( desc . getDeviceURI ( ) ) == false ) { StorageSystem array = getDataObject ( StorageSystem . class , desc . getDeviceURI ( ) , _dbClient ) ; arrayMap . put ( desc . getDeviceURI ( ) , array ) ; } } return arrayMap ; }
build a map of uri to cached storagesystem for the underlying arrays .
