(resp.getToImpl().getParameter(AddressImpl.TAG_PARAM) == null)) {
resp.createTag(Header.TO);
}
try {
TargetResolver tr = TargetResolver.getInstance();
TargetTuple tt = tr.resolveResponse(resp);
resp.setRemote(tt);
} catch (Exception e) {
e.printStackTrace();
// Fallback if resolve failed, possibly because of Via missing or not parsable.
resp.setRemote(req.getRemote());