code: @Override
      public boolean hasNodeType( String nodeTypeName ) {
          Name ntName = context().getValueFactories().getNameFactory().create(nodeTypeName);
          return nodeTypes().hasNodeType(ntName);
      }
docs: Returns true if and only if the node type with the given name exists.
  <p>
  This is equivalent to the following code:
  
  <pre>
  try {
  getNodeType(nodeTypeName);
  return true;
  } catch (NoSuchNodeTypeException nsnte) {
  return false;
  }
  </pre>
  
  However, the implementation is more efficient that the approach listed above and does not rely upon exceptions.
  </p>
  
  @param nodeTypeName the name of the node type
  @return true if the named node type does exist, or false otherwise
  @see NodeTypes#hasNodeType(Name)