private static class ExceptionThrowingFilterChain implements FilterChain {
@Override
public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException {
// throw an exception resembling what a client servlet should throw if an api connection fails
throw new ForceOAuthSessionExpirationException();
}