T[] toArray(T[] a) instead of Object[] toArray() in LuceneLoggerWorker