code: public String getQueryLanguage() throws UnsupportedQueryException
     {
        if (body.getChild(0).getName().getNamespaceURI().equals("DAV:")
           && body.getChild(0).getName().getLocalPart().equals("sql"))
        {
           return "sql";
        }
        else if (body.getChild(0).getName().getNamespaceURI().equals("DAV:")
           && body.getChild(0).getName().getLocalPart().equals("xpath"))
        {
           return "xpath";
        }
  
        throw new UnsupportedOperationException();
     }
docs: Get query language.
  
  @return query language
  @throws UnsupportedQueryException {@link UnsupportedQueryException}