// the original request-uri, but the request-uri has been already replaced
// and forgotten when processing the message for calculating the branch! ;)
if (err_code==0 && server_profile.loop_detection)
{ String loop_tag=pickLoopTag(msg);
// add temporary Loop-Tag header field
msg.setHeader(new Header(Loop_Tag,loop_tag));
// check for loop
if (!msg.hasRouteHeader())
{ Vector v=msg.getVias().getHeaders();
for (int i=0; i<v.size(); i++)
{ ViaHeader vh=new ViaHeader((Header)v.elementAt(i));