long trGen = trDao.getGenerationSync(profile.getId());
for (LedgerTransaction tr : transactions) {
TransactionWithAccounts tran = tr.toDBO();
tran.transaction.setGeneration(trGen);
tran.transaction.setProfileId(profile.getId());
long trGen = trDao.getGenerationSync(profile.getId());
for (LedgerTransaction tr : transactions) {
TransactionWithAccounts tran = tr.toDBO();
tran.transaction.setGeneration(trGen);
tran.transaction.setProfileId(profile.getId());