/** * Removes all via headers from <tt>request</tt> and replaces them with a new one, equal to the * one that was top most. * * @param request the Request whose branchID we'd like to remove. */ private void removeBranchID(Request request) { ViaHeader viaHeader = (ViaHeader) request.getHeader(ViaHeader.NAME); viaHeader.removeParameter("branch"); }