try {
if (this.eventListener != null)
this.eventListener.GNUCashEvent(new GNUCashEvent("Acocunt: " + currentAccount.getTitle()));
String where = "where ACCOUNT_ID = '" + currentAccount.getAccountID() + "'";
if (accountDAO.load(where, null, true).size() == 0)
accountDAO.create(currentAccount, false);
else
accountDAO.update(currentAccount, false);
}
catch (Exception ex) {
System.out.println("Error with account:\n" +