// initialise TIKA parser
// try to get a custom config
URL tikaConfigURL = null;
try {
tikaConfigURL = getContext().getResourceURL(tika_file_param);
config = new TikaConfig(tikaConfigURL);
} catch (Exception e1) {
// to log
this.getContext().getLogger().log(Level.WARNING, new StringBuffer("Failed to load TIKA config file from ")
.append(tikaConfigURL).append(" due to ").append(e1.getLocalizedMessage()).toString());
config = null;