try {
claimManager = IdentityClaimManager.getInstance();
claims = claimManager.getAllSupportedClaims(IdentityConstants.OPENID_AX_DIALECT,
IdentityTenantUtil.getRealm(null,getUserIdentifier()));
for (int i = 0; i < claims.length; i++) {
Claim temp = claims[i];
supportedClaims.put(temp.getClaimUri(), temp);
}
Claim openid = new Claim();
openid.setClaimUri(IdentityConstants.CLAIM_OPENID);
openid.setDisplayTag("OpenID");
openid.setDescription("OpenID");
supportedClaims.put(IdentityConstants.CLAIM_OPENID, openid);
} catch (IdentityException e) {
log.error("Error while loading claims", e);
throw new IdentityProviderException("Error while loading claims", e);