Register with manager in order to get notifications that an instance has changed state.
The message layer might have its own asynchronous notification protocol and this allows those mechanisms to be triggered.
434435436437438439440441442443444445446447448449
for (int i = 0; i < this.stateListeners.size(); i++) { try { final StateChangeCallback scc = (StateChangeCallback) this.stateListeners.get(i); if (scc != null) { final State stateRepr = this.dataConvert.getState(this); scc.newState(stateRepr); } } catch (Throwable t) { final String err = "Problem with asynchronous state " + "change notification: " + t.getMessage();