@Override public Iterable<BinaryKey> getAllBinaryKeys() throws BinaryStoreException { Iterable<BinaryKey> generatedIterable = new HashSet<BinaryKey>(); Iterator<Map.Entry<String, BinaryStore>> binaryStoreIterator = getNamedStoreIterator(); while (binaryStoreIterator.hasNext()) { BinaryStore bs = binaryStoreIterator.next().getValue(); generatedIterable = Collections.concat(generatedIterable, bs.getAllBinaryKeys()); } return generatedIterable; }