code: public void setTreatBaseUrlsAsLocal(Set<String> theTreatBaseUrlsAsLocal) {
  		if (theTreatBaseUrlsAsLocal != null) {
  			for (String next : theTreatBaseUrlsAsLocal) {
  				validateTreatBaseUrlsAsLocal(next);
  			}
  		}
  
  		HashSet<String> treatBaseUrlsAsLocal = new HashSet<>();
  		for (String next : ObjectUtils.defaultIfNull(theTreatBaseUrlsAsLocal, new HashSet<String>())) {
  			while (next.endsWith("/")) {
  				next = next.substring(0, next.length() - 1);
  			}
  			treatBaseUrlsAsLocal.add(next);
  		}
  		myTreatBaseUrlsAsLocal = treatBaseUrlsAsLocal;
  	}
docs: This setting may be used to advise the server that any references found in
  resources that have any of the base URLs given here will be replaced with
  simple local references.
  <p>
  For example, if the set contains the value <code>http://example.com/base/</code>
  and a resource is submitted to the server that contains a reference to
  <code>http://example.com/base/Patient/1</code>, the server will automatically
  convert this reference to <code>Patient/1</code>
  </p>
  
  @param theTreatBaseUrlsAsLocal The set of base URLs. May be <code>null</code>, which
  means no references will be treated as external