default:
throw new IllegalStateException("Don't know how to handle "
+ impresence);
}
presence.addExtension(new Nick(this.nick));
this.connection.sendPacket(presence);
} catch (SmackException.NotConnectedException e) {
LOGGER.warning(ExceptionHelper.dump(e));
} finally {
unlock();