// authenticate with the server, if necessary
if (!processAuthentication()) {
if (debug) {
debugOut("User authentication failure");
}
throw new AuthenticationFailedException("Error authenticating with server");
}
} catch (IOException e) {
if (debug) {
debugOut("I/O exception establishing connection", e);
}