@Override
    public EntityDescriptor getEntityDescriptorForEntityId(final String entityId) {
        return adapters.stream().map(adapter -> adapter.getEntityDescriptorForEntityId(entityId)).filter(Objects::nonNull).findFirst().orElse(null);
    }
This is {@link ChainingMetadataResolverAdapter}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-saml-mdui-core/src/main/java/org/apereo/cas/support/saml/mdui/ChainingMetadataResolverAdapter.java