code: public Integer getInstance() {
      try {
        return Integer.valueOf(uri.getPath().split("/")[2]);
      } catch (IndexOutOfBoundsException e) {
        return null;
      }
    }
docs: Returns the instance number.
  
  @return The instance number defined in the URI.