OOIION-1749 Ensure state object is flushed on publication
Merge pull request #1930 from wfrench/dsa_state_fix2

OOIION-1749 Ensure state object is flushed on publication