throw new RpcException(123, "Invalid method name or parameter.");
}
});
AvatarManager avatarManager = xmppSession.getExtensionManager(AvatarManager.class);
avatarManager.addAvatarChangeListener(new AvatarChangeListener() {
@Override
public void avatarChanged(final AvatarChangeEvent e) {
Platform.runLater(new Runnable() {
@Override
public void run() {