public void invite(AgentSession agentSession) { if (acceptedSessions.contains(agentSession) && request != null) { // Ask the workgroup to send invitations to the agent and to the user that made the // request. The Workgroup will create a MUC room and send invitations to the agent and // the user. request.offerAccepted(agentSession); updateUserSession(ROUTED); invitationSent = true; } }