String luceneConfigAbsolutePath = servletContextPath + File.separator + "lenya" + File.separator + "pubs" + File.separator + publicationId + File.separator + luceneConfig;
log.debug("Lucene configuration: " + luceneConfigAbsolutePath);
indexer = Index.getIndexer(luceneConfigAbsolutePath);
indexer.indexDocument(new File(files));
} catch (final ParameterException e) {
log.error("" +e.toString());
throw new ExecutionException(e);
} catch (Exception e) {
log.error("" +e.toString());