session.terminate(403, "User " + name + " is already in the room. "
+ "Please select another name and try again.");
} else {
WebRtcEndpoint endpoint = mp.newWebRtcEndpoint().build();
HubPort hubPort = dispatcher.newHubPort().build();
endpoint.connect(hubPort);
hubPort.connect(endpoint);
// endpoint.connect(endpoint);
DispatcherParticipant participant = new DispatcherParticipant(
session.getSessionId(), name, endpoint, session, hubPort);
session.start(participant.endpoint);