private void assertTargetStorageEntityValid(StorageEntity targetStorageEntity){
  try {
    storageHelper.getStorageBucketName(targetStorageEntity);
  }
 catch (  IllegalStateException e) {
    throw new IllegalArgumentException(e.getMessage(),e);
  }
  try {
    storageHelper.getStorageKmsKeyId(targetStorageEntity);
  }
 catch (  IllegalStateException e) {
    throw new IllegalArgumentException(e.getMessage(),e);
  }
}

private void assertTargetStorageEntityValid ( StorageEntity targetStorageEntity ) { try { storageHelper . getStorageBucketName ( targetStorageEntity ) ; } catch ( IllegalStateException e ) { throw new IllegalArgumentException ( e . getMessage ( ) , e ) ; } try { storageHelper . getStorageKmsKeyId ( targetStorageEntity ) ; } catch ( IllegalStateException e ) { throw new IllegalArgumentException ( e . getMessage ( ) , e ) ; } }
asserts that the given target storage entity has valid attributes .
