private void executeRequestState(RequestEvent event) {
String callId = ((CallIdHeader) event.getRequest().getHeader(
CallIdHeader.NAME)).getCallId();
SessionAssociation sa = (SessionAssociation) cache.get(callId);
SimpleCallFlowState simpleCallFlowState = getState(sa.getState());
simpleCallFlowState.execute(event);
}
private void executeResponseState(ResponseEvent event) {
String callId = ((CallIdHeader) event.getResponse().getHeader(
CallIdHeader.NAME)).getCallId();