public List<Volume> validateVolumes(StorageSystem storageSystem,List<Volume> volumes,boolean delete,boolean remediate,ValCk... checks){
  try {
    client=VPlexControllerUtils.getVPlexAPIClient(VPlexApiFactory.getInstance(),storageSystem,getDbClient());
    for (    Volume volume : volumes) {
      try {
        log.info(String.format("Validating %s (%s)(%s) checks %s",volume.getLabel(),volume.getNativeId(),volume.getId(),checks.toString()));
        validateVolume(volume,delete,remediate,checks);
      }
 catch (      Exception ex) {
        log.error("Exception validating volume: " + volume.getId(),ex);
      }
    }
  }
 catch (  Exception ex) {
    log.error("Unexpected exception validating VPLEX: " + storageSystem.getId(),ex);
  }
  return remediatedVolumes;
}

public List < Volume > validateVolumes ( StorageSystem storageSystem , List < Volume > volumes , boolean delete , boolean remediate , ValCk ... checks ) { try { client = VPlexControllerUtils . getVPlexAPIClient ( VPlexApiFactory . getInstance ( ) , storageSystem , getDbClient ( ) ) ; for ( Volume volume : volumes ) { try { log . info ( String . format ( "Validating %s (%s)(%s) checks %s" , volume . getLabel ( ) , volume . getNativeId ( ) , volume . getId ( ) , checks . toString ( ) ) ) ; validateVolume ( volume , delete , remediate , checks ) ; } catch ( Exception ex ) { log . error ( "Exception validating volume: " + volume . getId ( ) , ex ) ; } } } catch ( Exception ex ) { log . error ( "Unexpected exception validating VPLEX: " + storageSystem . getId ( ) , ex ) ; } return remediatedVolumes ; }
validates the given volumes .
