while (basicAuthenticationIterator.hasNext()) { final HTTPPluginConnectionDefaults.AuthorizationDetails authorizationDetails = (HTTPPluginConnectionDefaults.AuthorizationDetails) basicAuthenticationIterator.next();
final Iterator basicAuthenticationIterator = defaults.getBasicAuthorizations().iterator();
    public HTTPConnectionWrapper(HTTPConnection httpConnection,				 HTTPPluginConnectionDefaults defaults)    {	m_httpConnection = httpConnection;	m_httpConnection.setAllowUserInteraction(false);	synchronized (defaults) {	    setFollowRedirects(defaults.getFollowRedirects());	    setUseCookies(defaults.getUseCookies());	    setDefaultHeaders(defaults.getDefaultHeaders());	    setTimeout(defaults.getTimeout());	    final Iterator basicAuthenticationIterator = 		defaults.getBasicAuthorizations().iterator();	    while (basicAuthenticationIterator.hasNext()) {		final HTTPPluginConnectionDefaults.AuthorizationDetails		    authorizationDetails =		    (HTTPPluginConnectionDefaults.AuthorizationDetails)		    basicAuthenticationIterator.next();		addBasicAuthorization(authorizationDetails.getRealm(),				      authorizationDetails.getUser(),				      authorizationDetails.getPassword());	    }	    final Iterator digestAuthenticationIterator = 		defaults.getBasicAuthorizations().iterator();	    while (digestAuthenticationIterator.hasNext()) {		final HTTPPluginConnectionDefaults.AuthorizationDetails		    authorizationDetails =		    (HTTPPluginConnectionDefaults.AuthorizationDetails)		    digestAuthenticationIterator.next();		addDigestAuthorization(authorizationDetails.getRealm(),				       authorizationDetails.getUser(),				       authorizationDetails.getPassword());	    }	    setProxyServer(defaults.getProxyHost(), defaults.getProxyPort());	}    }