private void cleanupDiscovery(StorageSystem system){
  try {
    system.setReachableStatus(false);
    _dbClient.persistObject(system);
  }
 catch (  DatabaseException e) {
    _logger.error("discoverStorage failed. Failed to update discovery status to ERROR.",e);
  }
}

private void cleanupDiscovery ( StorageSystem system ) { try { system . setReachableStatus ( false ) ; _dbClient . persistObject ( system ) ; } catch ( DatabaseException e ) { _logger . error ( "discoverStorage failed. Failed to update discovery status to ERROR." , e ) ; } }
if discovery fails , then mark the system as unreachable . the discovery framework will remove the storage system from the database .
