/** * Adds a blob store and returns the {@link BlobStoreConfiguration} to which the blob stores was * added. * * @param bs the blob store to add * @throws IllegalArgumentException if the given blob store can't be added to any configuration * managed by this blob store aggregator. */ public synchronized void addBlobStore(final BlobStoreInfo bs) throws IllegalArgumentException { for (BlobStoreConfiguration c : getConfigs()) { if (c.canSave(bs)) { c.addBlobStore(bs); return; } } throw new IllegalArgumentException("No configuration found capable of saving " + bs); }