public boolean authenticate(String username, String password) {
if (username != null && password != null) {
HttpClient tempClient = new HttpClient(username, password);
try {
tempClient.POST(_locator.loginUri(), null);
for (Cookie c : tempClient.getCookieStore().getCookies()) {
if (c.getName().equals("sessionid"))
;
_authToken = c.getValue().toString();
}