code: public void setRecordRoute(boolean rr) {
  		if(started) {
  			throw new IllegalStateException("Cannot set a record route on an already started proxy");
  		}
  		if(rr) {
  			Message message = null;
  			if(originalRequest != null) {
  				message = originalRequest.getMessage();
  			}
  			// record route should be based on the original received message
  			javax.sip.address.SipURI flowUri= originalRequest.getSipSession().getFlow();
  			if(flowUri != null) {				
  				this.recordRouteURIString = flowUri.toString();
  				if(logger.isDebugEnabled())
  					logger.debug("Using Session Flow URI as record route URI " + recordRouteURIString);
  			} else {
  				this.recordRouteURIString = JainSipUtils.createRecordRouteURI( sipFactoryImpl.getSipNetworkInterfaceManager(), message).toString();
  			}
  			if(logger.isDebugEnabled()) {
  				logger.debug("Record routing enabled for proxy, Record Route used will be : " + recordRouteURIString);
  			}
  		}		
  		this.recordRoutingEnabled = rr;
  
  	}
docs: /* (non-Javadoc)
  @see javax.servlet.sip.Proxy#setRecordRoute(boolean)