AttributeDefinition ad = toDefinition(name, config);
try {
fetch.addAttribute(ad.getName(), ad.getUri(), ad.isRequired(), ad.getCount());
} catch (MessageException e) {
throw new OpenIdException("Unable to correctly add 'fetch' attribute.", e);
}
}
return fetch;
}