protocolFactory.getMap().put("http", httpProtocol);
protocolFactory.getMap().put("https", httpProtocol);
// Create URL filter factory.
URLFiltersFactory filtersFactory = new URLFiltersFactory();
RegexURLFilter defaultURLFilter = new RegexURLFilter();
defaultURLFilter.setFile("classpath:/regex-urlfilter.txt");
filtersFactory.setMap(new HashMap<String, Object>());
filtersFactory.getMap().put("default", defaultURLFilter);
// Create handler factory. Provide sysout handler only.
HandlerFactory handlerFactory = new HandlerFactory();