public static String getTargetState(final RequestContext requestContext) {
        return requestContext.getFlowScope().get("targetState", String.class);
    }
Gets target state.

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