code: protected Element getIndexingConfigurationDOM()
     {
        if (indexingConfiguration == null)
        {
           if (indexingConfigPath != null)
           {
  
              // File config = PrivilegedFileHelper.file(indexingConfigPath);
              SecurityHelper.doPrivilegedAction(new PrivilegedAction<Object>()
              {
                 public Object run()
                 {
                    InputStream is = SearchIndex.class.getResourceAsStream(indexingConfigPath);
                    if (is == null)
                    {
                       try
                       {
                          is = cfm.getInputStream(indexingConfigPath);
                       }
                       catch (Exception e1)
                       {
                          log.warn("Unable to load configuration " + indexingConfigPath);
                       }
                    }
  
                    try
                    {
                       DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                       DocumentBuilder builder = factory.newDocumentBuilder();
                       builder.setEntityResolver(new IndexingConfigurationEntityResolver());
                       String content = Deserializer.resolveVariables(Utils.readStream(is));
                       InputSource source = new InputSource(new StringReader(content));
                       indexingConfiguration = builder.parse(source).getDocumentElement();
                    }
                    catch (ParserConfigurationException e)
                    {
                       log.warn("Unable to create XML parser", e);
                    }
                    catch (IOException e)
                    {
                       log.warn("Exception parsing " + indexingConfigPath, e);
                    }
                    catch (SAXException e)
                    {
                       log.warn("Exception parsing " + indexingConfigPath, e);
                    }
                    return null;
                 }
              });
           }
        }
        return indexingConfiguration;
     }
docs: Returns the document element of the indexing configuration or
  <code>null</code> if there is no indexing configuration.
  
  @return the indexing configuration or <code>null</code> if there is none.