Use setupStore to get stateStore from StateManager consistently.
JBTM-2054 Updated to use the JTAEnvironmentBean to get hold of the JNDI names to use