/** * This method will fully populate a balance type given the passed in code, by calling the * business object service that retrieves the rest of the instances' information. * * @param balanceTypeCode * @return BalanceTyp */ protected BalanceType getPopulatedBalanceTypeInstance(String balanceTypeCode) { // now we have to get the code and the name of the original and new balance types BalanceTypeService bts = SpringContext.getBean(BalanceTypeService.class); BalanceType balanceType = bts.getBalanceTypeByCode(balanceTypeCode); balanceType.setCode(balanceTypeCode); return balanceType; }