PermissionsData perms = userMgr.getPermissions(form.getInviteId());
if (perms != null) {
// TODO ROLLER_2.0: notify inviter that invitee has accepted invitation
// TODO EXCEPTIONS: better exception handling
perms.setPending(false);
userMgr.savePermissions(perms);
RollerFactory.getRoller().flush();
ActionMessages msgs = new ActionMessages();
msgs.add(null, new ActionMessage(
"yourWebsites.accepted", perms.getWebsite().getHandle()));