if (!entity.first) {
log.warn("unable to locate metadata for provider (%s)", issuer);
throw MetadataException("Unable to locate metadata for identity provider ($entityID)", namedparams(1, "entityID", issuer));
if (!entity.first) {
log.warn("unable to locate metadata for provider (%s)", issuer);
throw MetadataException("Unable to locate metadata for identity provider ($entityID)", namedparams(1, "entityID", issuer));