if (ct != null) {
ServerTransaction st = (ServerTransaction) ct.getApplicationData();
// Strip the topmost via header
Response newResponse = (Response) response.clone();
newResponse.removeFirst(ViaHeader.NAME);
// The server tx goes to the terminated state.
st.sendResponse(newResponse);
} else {
// Client tx has already terminated but the UA is