IQ result = iq.createResult();
result.setExtension(new Rpc(new Rpc.MethodResponse.Fault(e1.getFaultCode(), e1.getFaultString())));
xmppSession.send(result);
} catch (Throwable e1) {
logger.log(Level.WARNING, e1.getMessage(), e1);
xmppSession.send(iq.createError(new StanzaError(new InternalServerError())));
}
}
});
e.consume();
}