public List<Supplier> getSuppliers(YearWeek yearWeek,
ProductAreaGroup productAreaGroup) {
List<Supplier> suppliers = (List<Supplier>) supplierMap
.get(productAreaGroup);
if (suppliers == null || suppliers.size() == 0) {
List<Supplier> suppliersHavingAssembly = new ArrayListModel(
managerRepository.getSupplierManager().findHavingAssembly(
yearWeek.getYear(), yearWeek.getWeek() - 1,
yearWeek.getWeek() + 1, productAreaGroup));
List<Supplier> activeSuppliers = new ArrayListModel(
managerRepository.getSupplierManager()
.findActiveByTypeName("Montering", "postalCode",
productAreaGroup));
suppliers = new ArrayListModel(CollectionUtils.union(
suppliersHavingAssembly, activeSuppliers));
Collections.sort(suppliers, new SupplierComparator());
supplierMap.putAll(productAreaGroup, suppliers);
}
return suppliers;