This allows for constructs like:

new OrRequestMatcher(
     new AntPathRequestMatcher("/saml2/metadata/{registrationId}"),
     new AntPathRequestMatcher("/saml2/metadata")
)

and still have the registrationId propagated.