datastoreService.put(transaction, entry.asEntity());
transaction.commit();
} finally {
if (transaction.isActive()) {
logger.info("Transaction to commit new events is rolled back because");
transaction.rollback();
} else {
if (logger.isDebugEnabled()) {
logger.debug("event of type {} appended", type);
}
}