@Override
    protected void doEnter(final RequestControlContext context) throws FlowExecutionException {
        try {
            super.doEnter(context);
        } finally {
            context.endActiveFlowSession(this.getId(), new LocalAttributeMap<>());
        }
    }
This is {@link EndViewState}.
This is a view state that also ends the view
regardless of the calling flow. The main difference
between this view and {@link org.springframework.webflow.engine.EndState}
is that this view does not consider the calling flow's root session
and will always end the view state. In other words, this view will always
end the flow session, whether called directly or as part of a subflow.
@author Misagh Moayyed
@since 7.2.0
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/states/EndViewState.java