public StorageCenter findStorageCenter(String ssn) throws StorageCenterAPIException {
  StorageCenter[] scs=getStorageCenterInfo();
  for (  StorageCenter sc : scs) {
    if (ssn.equals(sc.scSerialNumber)) {
      return sc;
    }
  }
  throw new StorageCenterAPIException(String.format("Unable to locate Storage Center %s",ssn));
}

public StorageCenter findStorageCenter ( String ssn ) throws StorageCenterAPIException { StorageCenter [ ] scs = getStorageCenterInfo ( ) ; for ( StorageCenter sc : scs ) { if ( ssn . equals ( sc . scSerialNumber ) ) { return sc ; } } throw new StorageCenterAPIException ( String . format ( "Unable to locate Storage Center %s" , ssn ) ) ; }
find a specific storage center .
