@Override
    public State resolveTargetState(final Transition transition, final State sourceState, final RequestContext context) {
        val targetState = WebUtils.getTargetState(context);
        return flow.getStateInstance(targetState);
    }
This is {@link DynamicTargetStateResolver}.

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