public Boolean checkIfProviderSupportsCompressionOperations(StorageSystem storageSystem){
  String versionSubstring=null;
  if (storageSystem.checkIfVmax3() && storageSystem.getUsingSmis80()) {
    try {
      StorageProvider storageProvider=_dbClient.queryObject(StorageProvider.class,storageSystem.getActiveProviderURI());
      String providerVersion=storageProvider.getVersionString();
      versionSubstring=providerVersion.split("\\.")[1];
    }
 catch (    Exception e) {
      _log.error("Exception get provider version for the storage system {} {}.",storageSystem.getLabel(),storageSystem.getId());
      return false;
    }
  }
  if (NullColumnValueGetter.isNullValue(versionSubstring) || !(Integer.parseInt(versionSubstring) > 2)) {
    String errMsg=String.format("SMI-S Provider associated with Storage System %s does not support compression operations",storageSystem.getSerialNumber());
    _log.error(errMsg);
    return false;
  }
  return true;
}

public Boolean checkIfProviderSupportsCompressionOperations ( StorageSystem storageSystem ) { String versionSubstring = null ; if ( storageSystem . checkIfVmax3 ( ) && storageSystem . getUsingSmis80 ( ) ) { try { StorageProvider storageProvider = _dbClient . queryObject ( StorageProvider . class , storageSystem . getActiveProviderURI ( ) ) ; String providerVersion = storageProvider . getVersionString ( ) ; versionSubstring = providerVersion . split ( "\\." ) [ 1 ] ; } catch ( Exception e ) { _log . error ( "Exception get provider version for the storage system {} {}." , storageSystem . getLabel ( ) , storageSystem . getId ( ) ) ; return false ; } } if ( NullColumnValueGetter . isNullValue ( versionSubstring ) || ! ( Integer . parseInt ( versionSubstring ) > 2 ) ) { String errMsg = String . format ( "SMI-S Provider associated with Storage System %s does not support compression operations" , storageSystem . getSerialNumber ( ) ) ; _log . error ( errMsg ) ; return false ; } return true ; }
this method return true if the smi - s provider supports compression operations . if not , it will throw an exception
