code: private void addPropertyName(Document doc, InternalQName name) throws RepositoryException
     {
        String fieldName = name.getName();
        try
        {
           fieldName = resolver.createJCRName(name).getAsString();
        }
        catch (NamespaceException e)
        {
           // will never happen
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
        doc.add(new Field(FieldNames.PROPERTIES_SET, fieldName, Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS));
     }
docs: Adds the property name to the lucene _:PROPERTIES_SET field.
  
  @param doc  the document.
  @param name the name of the property.
  @throws RepositoryException