code: public String getPrimaryItemName()
     {
        try
        {
           if (nodeTypeData.getPrimaryItemName() != null)
              return locationFactory.createJCRName(nodeTypeData.getPrimaryItemName()).getAsString();
           else
              return null;
        }
        catch (RepositoryException e)
        {
           throw new RuntimeException("Wrong primary item name in nodeTypeData " + e, e);
        }
     }
docs: {@inheritDoc}