openid = (String)session.getAttribute(OPENID_CLAIMED_ID_SESSION);
session.removeAttribute(OPENID_CLAIMED_ID_SESSION);
if (authSuccess.hasExtension(SRegMessage.OPENID_NS_SREG)) {
logger.info("resp contains SREG extension");
MessageExtension ext = authSuccess.getExtension(SRegMessage.OPENID_NS_SREG);
if (ext instanceof SRegResponse) {
logger.info("got a sreg response");
SRegResponse sregResp = (SRegResponse) ext;
Map sregmap = sregResp.getAttributes();
request.setAttribute(sregmapAttrName, sregmap);