private List<Volume> createBlockVolumes(String volumeName,int numVolumes,URI storageSystem){
  List<Volume> volumes=new ArrayList<Volume>();
  for (int i=1; i <= numVolumes; i++) {
    Volume volume=new Volume();
    URI volumeURI=URIUtil.createId(Volume.class);
    blockVolumeURIs.add(volumeURI);
    volume.setId(volumeURI);
    volume.setLabel(volumeName + i);
    volume.setStorageController(storageSystem);
    _dbClient.createObject(volume);
    volumes.add(volume);
  }
  return volumes;
}

private List < Volume > createBlockVolumes ( String volumeName , int numVolumes , URI storageSystem ) { List < Volume > volumes = new ArrayList < Volume > ( ) ; for ( int i = 1 ; i <= numVolumes ; i ++ ) { Volume volume = new Volume ( ) ; URI volumeURI = URIUtil . createId ( Volume . class ) ; blockVolumeURIs . add ( volumeURI ) ; volume . setId ( volumeURI ) ; volume . setLabel ( volumeName + i ) ; volume . setStorageController ( storageSystem ) ; _dbClient . createObject ( volume ) ; volumes . add ( volume ) ; } return volumes ; }
convenience method that creates the blockobject volume data .
