public AddressContainer getAddressList(int parentId){
if (parentId != 0){
AddressObject parent = getDao().getById(AddressObject.class, parentId);
List<AddressObject> childList = getDao().getChildList(parent);
AddressContainer ac = new AddressContainer(parent.getType().getLevel(), childList);
return ac;
}else{
return new AddressContainer(parentId, new ArrayList<AddressObject>());
}
}