try {
ForumFactory forumFactory = ForumFactory.getInstance(getAuthToken(request));
ProfileManager manager = forumFactory.getProfileManager();
User user = manager.getUser(getAuthToken(request).getUserID());
Group group = manager.getGroup((String)PropertyUtils.getSimpleProperty(form, "group"));
request.setAttribute("id",group.getID()+"") ;
User u = manager.getUser((String)PropertyUtils.getSimpleProperty(form, "username"));
// add user as an administrator of the group
group.addAdministrator(u);
} catch (NotFoundException e) {