{
// Write the STATE_KEY out. Unfortunately, this will
// be wasteful for pure server-side state managers where nothing
// is actually written into the output, but this cannot
// programatically be discovered
stateWriter.writingState();
}
StateManager stateManager = context.getApplication().getStateManager();
if (stateManager.isSavingStateInClient(context))
{