return _sha;
}
public ContentPointer storeContent(Map<String, Object> storageScheme)
throws IOException {
StorageScheme s = storageSchemes.get(storageScheme.get("store"));
if (s == null)
throw new UnsupportedOperationException(storageScheme.toString());
DBObject x = new BasicDBObject();
for (Map.Entry<String, Object> e : storageScheme.entrySet()) {
x.put(e.getKey(), e.getValue());
}
long length = BSONUtils.getRequiredLong(x, "length");
byte[] sha = DigestUtils.sha(s.getContent(this, storageScheme)
.getInputStream());
long existing = contentCollection.count(new BasicDBObject(_ID, sha));
if (existing == 0) {
x.put(_ID, sha);