code: private void saveObjectData(JsonSimple data, String oid)
  			throws TransactionException {
  		// Get from storage
  		DigitalObject object = null;
  		try {
  			object = storage.getObject(oid);
  			getDataPayload(object);
  		} catch (StorageException ex) {
  			log.error("Error accessing object '{}' in storage: ", oid, ex);
  			throw new TransactionException(ex);
  		}
  
  		// Store modifications
  		String jsonString = data.toString(true);
  		try {
  			updateDataPayload(object, jsonString);
  		} catch (Exception ex) {
  			log.error("Unable to store data '{}': ", oid, ex);
  			throw new TransactionException(ex);
  		}
  	}
docs: Save the provided object data back into storage
  
  @param data
  The data to save
  @param oid
  The object we want it saved in