update UnitBean.java refactoring