// try to get additional details
if (authSuccess.hasExtension(AxMessage.OPENID_NS_AX)) {
MessageExtension ext = authSuccess.getExtension(AxMessage.OPENID_NS_AX);
if (ext instanceof FetchResponse) {
FetchResponse fetchResp = (FetchResponse) ext;
details.setMail(fetchResp.getAttributeValue("email"));
String fullname = fetchResp.getAttributeValue("fullname");
if (fullname == null) {
String firstname = fetchResp.getAttributeValue("firstname");
String lastname = fetchResp.getAttributeValue("lastname");
if (firstname == null) {
fullname = lastname == null ? null : lastname;
} else if (lastname != null) {
fullname = firstname + " " + lastname;