Set<RetailerTag> tags = retailer.getRetailerTags();
if (Hibernate.isInitialized(tags) &&
tags != null) {
for (Iterator<RetailerTag> iterator = tags.iterator(); iterator.hasNext();) {
RetailerTag retailerTag = (RetailerTag) iterator.next();
RetailerTagViewBean retailerTagViewBean = new RetailerTagViewBean();
retailerTagViewBean.setCode(retailerTag.getCode());
retailerTagViewBean.setName(retailerTag.getName());
retailerTagViewBean.setDescription(retailerTag.getDescription());
retailerViewBean.getTags().add(retailerTagViewBean);
}
}
Set<Store> stores = retailer.getStores();