OpenIDProviderList listOfProviders = manager.discoverProviders();
HTTPOpenIDContext httpOpenIDCtx = new HTTPOpenIDContext(req,resp, this.servletContext);
httpOpenIDCtx.setReturnURL(returnURL);
HTTPProtocolAdaptor adapter = new HTTPProtocolAdaptor(httpOpenIDCtx);
OpenIDProviderInformation providerInfo = manager.associate(adapter, listOfProviders);
manager.authenticate(adapter, providerInfo);
}
catch (OpenIDGeneralException e)
{
log("[OpenIDConsumerServlet]Exception in dealing with the provider:",e);