public SamlIdPAuthenticationContext getSubcontext(final Class<? extends BaseContext> clazz) {
        if (!contexts.containsKey(clazz.getName())) {
            contexts.put(clazz.getName(), new SamlIdPAuthenticationContext());
        }
        return contexts.get(clazz.getName());
    }
Gets subcontext.

@param clazz the clazz
@return the subcontext
support/cas-server-support-saml-idp-core/src/main/java/org/apereo/cas/support/saml/authentication/SamlIdPAuthenticationContext.java