getSecurityManager().getActiveRoleService().getRolesForUser(user.getUsername()));
} catch (IOException e) {
throw new WicketRuntimeException(e);
}
form.add(rolePalette = new RolePaletteFormComponent("roles", new ListModel(roles)));
rolePalette.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override
protected void onUpdate(AjaxRequestTarget target) {
updateCalculatedRoles(target);
updateGroupAdminList(target);