code: public ViaHeader getLocalVia(String transport, String branch) {
  		checkState();
  		final ListeningPoint lp = provider.getListeningPoint(transport);
  		if (lp != null) {
  			try {
  				return headerFactory.createViaHeader(lp.getIPAddress(), lp
  						.getPort(), lp.getTransport(), branch);
  			} catch (ParseException e) {
  				tracer.severe(e.getMessage(), e);
  			} catch (InvalidArgumentException e) {
  				tracer.severe(e.getMessage(), e);
  			}
  		}
  		return null;
  	}
docs: /*
  (non-Javadoc)
  
  @see
  net.java.slee.resource.sip.SleeSipProvider#getLocalVia(java.lang.String,
  java.lang.String)