userClaimedId, authenticatedAndApproved.booleanValue());
if (responseMessage instanceof AuthSuccess) {
// Try adding an AX Fetch Response
String email = (String) session.getAttribute("email");
FetchResponse2 fetchResponse = new FetchResponse2();
try {
if (email != null) {
fetchResponse.addAttribute(Step2.AxSchema.EMAIL.getShortName(),
Step2.AxSchema.EMAIL.getUri(), email);
}
String country = (String) session.getAttribute("country");
if (country != null) {
fetchResponse.addAttribute(Step2.AxSchema.COUNTRY.getShortName(),
Step2.AxSchema.COUNTRY.getUri(), country);
}
responseMessage.addExtension(fetchResponse);
} catch (MessageException e) {
throw new ServletException(e);