code: public void addNodeType(NodeTypeData nodeType, Map<InternalQName, NodeTypeData> volatileNodeTypes)
        throws RepositoryException
     {
  
        hierarchy.addNodeType(nodeType, volatileNodeTypes);
  
        // put supers
        final Set<InternalQName> supers = hierarchy.getSupertypes(nodeType.getName(), volatileNodeTypes);
  
        for (final InternalQName superName : supers)
        {
           defsHolder.putDefinitions(nodeType.getName(), hierarchy.getNodeType(superName, volatileNodeTypes));
        }
        haveTypes = true;
  
        // put prop def
        defsHolder.putDefinitions(nodeType.getName(), nodeType);
     }
docs: {@inheritDoc}