model.addAttribute("deviceTypes", DeviceType.getAlliPad());
List<RegionModel> regions = new ArrayList<RegionModel>();
//Sort regions alphabetically in ascending order
List<Region> sortedRegions = new ArrayList<Region>(domain.getRegions());
Collections.sort(sortedRegions, new RegionNameComparator());
for (Region region : sortedRegions) {
RegionModel regionModel = regionService.createRegionModel(region);
if (regionModel != null) {
regions.add(regionModel);
}