public String getString(String expression, Object context)
      throws XPathExpressionException {
      assert(expression != null);

      if(context == null) {
         assert(document != null);
         context = document;
      }

      return (String) xpath.evaluate(expression,
                                     context,
                                     XPathConstants.STRING);
   }