ServiceConfig handlerConfig = gc.getBean(ServiceConfig.class);
String luceneConfigXmlFile = handlerConfig
.getMandatoryValue(Geonet.Config.LUCENE_CONFIG);
LuceneConfig lc = context.getBean(LuceneConfig.class);
lc.configure(luceneConfigXmlFile);
Logger logger = context.getLogger();
logger.info(" - Lucene configuration is:");
String config = lc.toString();
logger.info(config);