code: public List<NodeTypeData> getAllNodeTypes()
     {
        try
        {
           return this.nodeTypeRepository.getAllNodeTypes();
        }
        catch (RepositoryException e)
        {
           LOG.error(e.getLocalizedMessage());
        }
        return new ArrayList<NodeTypeData>();
  
     }
docs: {@inheritDoc}