public static void putTargetState(final RequestContext requestContext, final String id) {
        requestContext.getFlowScope().put("targetState", id);
    }
Put target state.

@param requestContext the request context
@param id             the id
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java