public void AddObjectToIndex(object obj)
        {
            //TODO: if the obj is a SPListItemInstance, create a document from the list item.
            var objString   = JSONObject.Stringify(this.Engine, obj, null, null);
            var objectToAdd = JObject.Parse(objString);

            var doc = LuceneHelper.ConvertObjectToDocument(objectToAdd);

            try
            {
                m_indexWriter.AddDocument(doc);
            }
            catch (OutOfMemoryException)
            {
                LuceneHelper.CloseIndexWriterSingleton(m_targetFolder);
            }
        }