String jid = request.getParameter("jid");
String signature = request.getParameter("signature");
// Validate
if (jid == null) {
throw new MissingParameterException("jid");
}
if (signature == null) {
throw new MissingParameterException("signature");
}
// Validate the session
try {
if (SessionValidator.getInstance().validateSession(jid, signature)) {