code: protected URI buildLocationUri(MODEL_ID id, boolean useTemplate) {
          if (id == null) {
              throw new NotFoundException();
          }
          UriBuilder ub = uriInfo.getAbsolutePathBuilder();
          if (useTemplate) {
              return ub.build(id);
          } else {
              return ub.path(idToString(id)).build();
          }
      }
docs: <p>buildLocationUri.</p>
  
  @param id          a MODEL_ID object.
  @param useTemplate use current template
  @return a {@link java.net.URI} object.