code: public String getDefaultPrimaryTypeName()
     {
        String result = null;
        if (nodeDefinitionData.getDefaultPrimaryType() != null)
        {
           try
           {
              result = locationFactory.createJCRName(nodeDefinitionData.getDefaultPrimaryType()).getAsString();
           }
           catch (RepositoryException e)
           {
              LOG.error(e.getLocalizedMessage(), e);
           }
        }
        return result;
     }
docs: {@inheritDoc}