* @throws ClientProtocolException
*/
private HttpResponse executeRequest(final HttpClient httpClient,
final HttpRequestBase httpRequest, final HttpContext localContext, final URL url)
throws IOException, ClientProtocolException {
AuthManager authManager = getAuthManager();
if (authManager != null) {
Subject subject = authManager.getSubjectForUrl(url);
if(subject != null) {
try {
return Subject.doAs(subject,
new PrivilegedExceptionAction<HttpResponse>() {