} else if ("Failure".equalsIgnoreCase(result)) {
XPath xpaCaptcha = XPath.newInstance("./captcha");
Element captcha = (Element) xpaCaptcha.selectSingleNode(node);
if (captcha != null) {
XPath xpaType = XPath.newInstance("./@type");
CaptchaException exception = new CaptchaException("Captcha", xpaType.valueOf(captcha));
XPath xpaMime = XPath.newInstance("./@mime");
exception.setMime(xpaMime.valueOf(captcha));
XPath xpaId = XPath.newInstance("./@id");
exception.setId(xpaId.valueOf(captcha));
XPath xpaUrl = XPath.newInstance("./@url");
exception.setURL(xpaUrl.valueOf(captcha));
throw exception;
}
}
XPath xpaWait = XPath.newInstance("./@wait");
XPath xpaDetails = XPath.newInstance("./@details");