// catch the next written stuff into a string and look if it is empty (TOBAGO-909)
FastStringWriter buffer = new FastStringWriter(40); // usually only the marker...
TobagoResponseWriter originalWriter = (TobagoResponseWriter) facesContext.getResponseWriter();
writer = (TobagoResponseWriter) writer.cloneWithWriter(buffer);
facesContext.setResponseWriter(writer);
viewHandler.writeState(facesContext);
final String stateContent = buffer.toString();
writer = originalWriter;
facesContext.setResponseWriter(writer);
if (StringUtils.isBlank(stateContent)) {