try {
AccountingAccount oAacc;
connect(getSessionAttribute("nickname"), getSessionAttribute("password"));
if (sFormerId.length()>0) {
oAacc = new AccountingAccount();
oAacc.load(getSession(), sFormerId);
oAacc.setCode(getParam("accountingAccount.code"));
oAacc.setDescription(getParam("accountingAccount.description"));
oAacc.setActive(getParam("accountingAccount.active","1").equals("1"));
} else {
Dms oDms = getSession().getDms();