code: public static boolean sameResource(URIReference u1, String u2) {
          return u1.getURI().toString().equals(u2);
      }
docs: Tells whether the given resources are equivalent, with one given as a URI
  string.
  
  @param u1
  first resource.
  @param u2
  second resource, given as a URI string.
  @return true if equivalent, false otherwise.