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

OOIION-1749 Ensure state object is flushed on publication