code: public String getUrl() {
          if (url == null) {
              RequestHandle request = getRequest();
              url = LinkUtil.getUrl(request, getPath(), request.getSelectors(), null);
          }
          return url;
      }
docs: Returns the URL to the resource of this bean (mapped and with the appropriate extension).
  
  @see LinkUtil#getUrl(SlingHttpServletRequest, String)