// Add Authentication headers, if necessary. This is the first
// step to allow authentication to add extra headers, HTTP parameters,
// etc.
AbstractAuthentication authentication = theRequest.getAuthentication();
if (authentication != null) {
authentication.configure(theRequest);
}
// Add the parameters that need to be passed as part of the URL
url = addParametersGet(theRequest, url);