req.setCredentials(params.username, params.password);
req.setPreemptiveBasicAuth(true);
req.setAddress(params.getServletPath()+"/srv/eng/xml.info");
req.addParam("type", "me");
Element response = req.execute();
if(!response.getName().equals("info") || response.getChild("me") == null) {
pre29Login(req);
} else if(!"true".equals(response.getChild("me").getAttributeValue("authenticated"))) {
log.warning("Authentication failed for user: " + params.username);
throw new UserNotFoundEx(params.username);