code: private URIReference getLocalizedResource(Node n)
              throws GraphElementFactoryException {
          if (n instanceof URIReference) {
              URIReference u = (URIReference) n;
              return _connector.getElementFactory().createResource(u.getURI());
          } else {
              throw new RuntimeException("Error localizing triple; "
                      + n.getClass().getName() + " is not a URIReference");
          }
      }
docs: Gets a localized URIReference based on the given Node.