code: protected String getCurieHref(String name, UriTemplate template) {
  
  		if (template.toString().startsWith("http")) {
  			return template.toString();
  		}
  
  		String applicationUri = ServletUriComponentsBuilder.fromCurrentServletMapping().build().expand().toString();
  		return applicationUri.concat(template.toString());
  	}
docs: Returns the href for the {@link Curie} instance to be created. Will prepend the current application URI (servlet
  mapping) in case the template is not an absolute one in the first place.
  
  @param name will never be {@literal null} or empty.
  @param template will never be {@literal null}.
  @return the {@link String} to be used as href in the {@link Curie} to be created, must not be {@literal null}.