private void updateStoragePoolRequiredCapacityMap(Map<URI,Long> storagePoolRequiredCapacity,URI storagePoolUri,long requiredCapacity){
  if (storagePoolRequiredCapacity.get(storagePoolUri) == null) {
    storagePoolRequiredCapacity.put(storagePoolUri,requiredCapacity);
  }
 else {
    long updatedRequiredCapacity=storagePoolRequiredCapacity.get(storagePoolUri) + requiredCapacity;
    storagePoolRequiredCapacity.put(storagePoolUri,updatedRequiredCapacity);
  }
}

private void updateStoragePoolRequiredCapacityMap ( Map < URI , Long > storagePoolRequiredCapacity , URI storagePoolUri , long requiredCapacity ) { if ( storagePoolRequiredCapacity . get ( storagePoolUri ) == null ) { storagePoolRequiredCapacity . put ( storagePoolUri , requiredCapacity ) ; } else { long updatedRequiredCapacity = storagePoolRequiredCapacity . get ( storagePoolUri ) + requiredCapacity ; storagePoolRequiredCapacity . put ( storagePoolUri , updatedRequiredCapacity ) ; } }
convenience method to add entries to a map used track required capacity per storage pool .
