code: public Set<HierarchicalProperty> getProperties(boolean namesOnly) throws RepositoryException
     {
        Set<HierarchicalProperty> props = new HashSet<HierarchicalProperty>();
  
        Iterator<QName> propIter = PRESET_PROP.iterator();
        while (propIter.hasNext())
        {
           QName propertyName = propIter.next();
  
           try
           {
              props.add(namesOnly ? new HierarchicalProperty(propertyName) : getProperty(propertyName));
           }
           catch (Exception exc)
           {
              if (LOG.isTraceEnabled())
              {
                 LOG.trace("An exception occurred: " + exc.getMessage());
              }
           }
        }
  
        return props;
     }
docs: {@inheritDoc}