int res = uow().writeToDB(c, classes());
DBQueue.writeMessage(delta, node(), nodes(), c);
c.commit();
return res;
} catch (Exception e) {
try { c.rollback(); } catch (Exception e2) { fail(e2); }
log.error("could not write db changes",e);
fail(e);
} finally {
try { c.free(); } catch (Exception e2) { fail(e2); }
}