docs: private boolean isXmlTextNode( Node node ) throws RepositoryException {
          // ./xmltext/xmlcharacters exception (see JSR-170 Spec 6.4.2.3)
  
          if (getPrefixedName(JcrLexicon.XMLTEXT).equals(node.getName())) {
              if (node.getNodes().getSize() == 0) {
  
                  PropertyIterator properties = node.getProperties();
                  boolean xmlCharactersFound = false;
  
                  while (properties.hasNext()) {
                      Property property = properties.nextProperty();
  
                      if (getPrefixedName(JcrLexicon.PRIMARY_TYPE).equals(property.getName())) {
                          continue;
                      }
  
                      if (getPrefixedName(JcrLexicon.XMLCHARACTERS).equals(property.getName())) {
                          xmlCharactersFound = true;
                          continue;
                      }
  
                      // If the xmltext node has any properties other than primaryType or xmlcharacters, return false;
                      return false;
                  }
  
                  return xmlCharactersFound;
              }
          }
  
          return false;
  
      }