code: public NodeType[] getSupertypes()
     {
        Set<InternalQName> supers = nodeTypeDataManager.getSupertypes(nodeTypeData.getName());
        NodeType[] superTypes = new NodeType[supers.size()];
        int i = 0;
        for (InternalQName nodeTypeName : supers)
        {
           try
           {
              superTypes[i++] = nodeTypeManager.findNodeType(nodeTypeName);
           }
           catch (NoSuchNodeTypeException e)
           {
              LOG.error(e.getLocalizedMessage(), e);
           }
           catch (RepositoryException e)
           {
              LOG.error(e.getLocalizedMessage(), e);
           }
        }
        return superTypes;
     }
docs: {@inheritDoc}