@RequestMapping("/console/directory/group/edit/(*:id)")
public String consoleGroupEdit(ModelMap model, @RequestParam("id") String id) {
Collection<Organization> organizations = organizationDao.getOrganizationsByFilter(null, "name", false, null, null);
model.addAttribute("organizations", organizations);
Group group = groupDao.getGroup(id);
if (group.getOrganization() != null) {
group.setOrganizationId(group.getOrganization().getId());
}
model.addAttribute("group", groupDao.getGroup(id));
return "console/directory/groupEdit";
}