code: public Uri getUri() {
          if (uri == null) {
              try {
                  uri = uriBuilder.build();
              } catch (Exception e) {
                  throw new IllegalStateException("Could not build the URI.", e);
              }
          }
          return uri;
      }
docs: Get the URI identifying the resource.
  
  @return  the resource URI.
  
  @throws IllegalStateException  if the URI could not be built from the current state of the resource target.