private boolean doOpenIDSignUp(String userName, String openId) throws Exception {
IdentityPersistenceManager manager = IdentityPersistenceManager.getPersistanceManager();
String domain = TenantUtils.getDomainNameFromOpenId(openId);
Registry registry = IdentityTenantUtil.getRegistry(domain, userName);
UserRealm realm = IdentityTenantUtil.getRealm(domain, userName);
return manager.doOpenIdSignUp(registry, realm, openId, userName);
}
private void addUserClaims(String userName, String firstName, String lastName,
String emailAddress, int tenantId) throws Exception {
try {