@Override
    public BaseHttpServletRequestXMLMessageDecoder getInstance(final HttpMethod method) {
        return FunctionUtils.doUnchecked(() -> {
            val decoder = get(method);
            return (BaseHttpServletRequestXMLMessageDecoder) BeanUtils.cloneBean(decoder);
        });
    }
This is {@link HttpServletRequestXMLMessageDecodersMap}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/HttpServletRequestXMLMessageDecodersMap.java