@Override
    public String extract(final HttpServletRequest request, final String flowId) {
        if (casProperties.getMultitenancy().getCore().isEnabled() && isValidFlowId(flowId)) {
            val tenant = tenantExtractor.extract(request).orElseThrow(
                () -> new UnknownTenantException("Unknown tenant definition for flow id " + flowId));
            request.setAttribute(TenantDefinition.class.getName(), tenant);
            return flowId.substring(flowId.lastIndexOf('/') + 1);
        }
        return flowId;
    }
This is {@link DefaultCasWebflowIdExtractor}.

@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/DefaultCasWebflowIdExtractor.java