class SpaceConfigStorageRegistryImpl implements SpaceConfigStorageRegistry {

    @Override
    public SpaceConfigStorageBatch getBatch(String spaceName) {

        Optional<SpaceConfigStorage> optional = Optional.ofNullable(get(spaceName));

        if (optional.isPresent()) {
            return new SpaceStorageBatchImpl(optional.get());
        }

        throw new IllegalArgumentException("Cannot find Space '" + spaceName + "'");
    }

    public  SpaceConfigStorageRegistryImpl();
    @Inject public  SpaceConfigStorageRegistryImpl(final Instance<SpaceConfigStorage> spaceConfigStorages);

}