room.sendInvitationTo(otherUri, "ping invite " + pings);
}
}
});
room.addOccupantChangedHandler(new OccupantChangedHandler() {
@Override
public void onOccupantChanged(final OccupantChangedEvent event) {
final boolean isOtherOccupant = event.getOccupant().getUserUri().equalsNoResource(otherUri);
if (isOtherOccupant) {
if (event.isRemoved()) {