*/
@SuppressWarnings("unchecked")
private ActionForward getCodeUsersByQuery(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
String query = req.getParameter("query");
String groupName = req.getParameter("group");
GroupManager groupMgr = new GroupManager(locale, session);
Group group = groupMgr.getGroup(groupName);
UserManager userManager = new UserManager(locale,session);
List<User> users = userManager.getUsersWith2DCode(group, query);
// create a JSON result: {size:n, list:[{id:1, name:"name"}, ...]}