registry.put(path, resource);
registry.addAssociation(RegistryConstants.PROFILES_PATH + rp.getUserId(),path,
IdentityRegistryResources.ASSOCIATION_USER_TRUSTED_RP);
} catch (RegistryException e) {
log.error("Error while creating or updating user trusted relying party", e);
throw new IdentityException(
"Error while creating or updating user trusted relying party", e);
}
}