XWIKI-10140: Improve the performance of the Solr Index Job
* Fix for Java 6