public String getTypeCode() {
   if (baUnitType != null) {
     return baUnitType.getCode();
   } else {
     return null;
   }
 }
 public void setTypeCode(String typeCode) {
   String oldValue = null;
   if (baUnitType != null) {
     oldValue = baUnitType.getCode();
   }
   setBaUnitType(CacheManager.getBeanByCode(CacheManager.getBaUnitTypes(), typeCode));
   propertySupport.firePropertyChange(TYPE_CODE_PROPERTY, oldValue, typeCode);
 }