class Command {

    Supplier<NodeStore> getNodeStoreSupplier(final @NotNull Options opts) {
        if (opts.isStoreBlobs()) {
            return () -> new FileBlobMemoryNodeStore(
                    opts.getCacheDir().toPath().resolve("blobs").toFile().getAbsolutePath());
        } else {
            return MemoryNodeStore::new;
        }
    }

}