protected void lookup_financialAccount_FinancialAccount( FinancialAccountAcctDs ds, FinancialAccountAcct e) throws Exception { if (ds.getFinancialAccount() != null && !ds.getFinancialAccount().equals("")) { FinancialAccount x = null; try { x = ((IFinancialAccountService) findEntityService(FinancialAccount.class)) .findByName(ds.getFinancialAccount()); } catch (javax.persistence.NoResultException exception) { throw new Exception( "Invalid value provided to find `FinancialAccount` reference: `financialAccount` = " + ds.getFinancialAccount() + " "); } e.setFinancialAccount(x); } else { e.setFinancialAccount(null); } }