public void updateKid(Kid kid) { // Lock it! mLock.lock(); try { startTransaction(); kidsTable.updateEntry(localDatabase, kid, kid.getId(), kidsTable.getMapper()); } catch (DBException e) { Logger.error(this, "Problems starting transaction"); } finally { endTransaction(); mLock.unlock(); } }