private BlobEntity deduplicateOrStore(String name, String mimeType, long hash, BlobEntity candidate)
         throws StorageException {
        var duplicate = blobStoreRepository.getByNaturalId(name, mimeType, hash);
        if (duplicate == null) {
            blobStoreRepository.create(candidate);
            return candidate;
        } else {
            // Increase refcount, as we've "stored" this file again.
            blobStoreRepository.increaseRefCount(duplicate.getId());
            return duplicate;
        }
    }
OID for 'name' of foo.jpeg will be in format: <samp>44cf-a164-607dd7fcd820/foo.jpeg</samp>.
manager/api/jpa/src/main/java/io/apiman/manager/api/jpa/blobstore/SqlBlobStoreService.java