docs: public final boolean isNodeType( Name nodeTypeName ) throws RepositoryException {
          checkSession();
          SessionCache cache = sessionCache();
          NodeTypes nodeTypes = session().nodeTypes();
          try {
              CachedNode node = node();
              // Check the primary type ...
              Name primaryTypeName = node.getPrimaryType(cache);
              if (nodeTypes.isTypeOrSubtype(primaryTypeName, nodeTypeName)) return true;
              // Check the mixins ...
              Set<Name> mixinTypes = node.getMixinTypes(cache);
              if (nodeTypes.isTypeOrSubtype(mixinTypes, nodeTypeName)) return true;
          } catch (ItemNotFoundException e) {
              // The node has been removed, so do nothing
          }
          return false;
      }