SessionAssociation sa = (SessionAssociation) cache.get(callId);
// This state is used to manage the state machine transitions in the Sbb
// implementation
sa.setState(stateName);
// Also communicate the state to external observers
StateCallback callback = sa.getStateCallback();
if (callback != null) { // The callback property is optional and can be
// null
callback.setSessionState(stateName);
}
}