switch (docType) {
case HTML:
Config conf = Config.getConfig("crawler.properties");
String removedXPathElements = conf.getString("HtmlParser.removedXPath");
String[] separatorTags = conf.getStringArray("HtmlParser.separatorTags");
parser = new HtmlParser(removedXPathElements,separatorTags);
break;
case PDF:
parser = new PdfParser();
break;
}