private Blob getLocalBlob(ODocument assetDocument) {
Map<String, String> blobRefs = assetDocument.field(P_BLOB_REFS);
checkState(blobRefs.containsKey(localBlobStoreId), "Local blobRef does not exist for that asset");
BlobId blobId = new BlobId(blobRefs.get(localBlobStoreId));
Blob blob = blobStore.get(new BlobId(blobRefs.get(localBlobStoreId)));
checkState(blob != null, "Blob not found in local store: %", blobId.asUniqueString());
return blob;
}
private <A extends Entity> ODocument createAssetDocument(ODatabaseDocumentTx db, Class<A> assetClass, A sourceAsset,
EntityAdapter<A> assetEntityAdapter, EntityId assetId, Blob blob, ORID componentDocumentRid) {