String msg = "Error in retrieving the tenant information for the tenant id: " +
tenantId + ".";
log.info(msg, e);
throw new Exception(msg, e);
}
RealmService realmService = Util.getRealmService();
try {
Map<String, String> claimsMap = new HashMap<String, String>();
claimsMap.put(UserCoreConstants.ClaimTypeURIs.GIVEN_NAME,
accountInfoBean.getFirstname());
claimsMap.put(UserCoreConstants.ClaimTypeURIs.SURNAME, accountInfoBean.getLastname());
UserStoreManager userStoreManager =
(UserStoreManager) realmService.getTenantUserRealm(tenantId)
.getUserStoreManager();
userStoreManager.setUserClaimValues(
ClaimsMgtUtil.getAdminUserNameFromTenantId(realmService, tenantId),
claimsMap, UserCoreConstants.DEFAULT_PROFILE);
log.info("FirstName: " + accountInfoBean.getFirstname() +