contactUri.encodeBeKey(hashkey);
// Allow writes on cloned Address object
contactAddress.setReadOnly(false);
contactAddress.setURI(contactUri);
contactHeader.setReadOnly(false);
contactHeader.removeValues();
contactHeader.setValue(contactAddress.toString(), true);
contactHeader.setReadOnly(true);
}
} else if (response.getMethod().equalsIgnoreCase("INVITE") && response.getStatus() >= 300){
// This is a non-2xx response to an INVITE, set bekey in the To-header