try {
openIdService.setRealm(urlService.buildDomainePathUrl(requestData));
String openIdCallBackURL = urlService.buildOpenIdCallBackUrl(requestData);
openIdService.setReturnTo(urlService.buildAbsoluteUrl(requestData, openIdCallBackURL));
Endpoint endpoint = openIdService.lookupEndpoint(OpenProvider.YAHOO.getPropertyKey().toLowerCase());
Association association = openIdService.lookupAssociation(endpoint);
request.getSession().setAttribute(Utils.ATTR_MAC, association.getRawMacKey());
request.getSession().setAttribute(Utils.ATTR_ALIAS, endpoint.getAlias());
String url = openIdService.getAuthenticationUrl(endpoint, association);
response.sendRedirect(url);
} catch (Exception e) {
logger.error("Connect With " + OpenProvider.YAHOO.getPropertyKey() + " failed!");