cacheManager = (CacheManager)serviceManager.lookup(CacheManager.ROLE);
sourceResolver = (SourceResolver)serviceManager.lookup(SourceResolver.ROLE);
source = sourceResolver.resolveURI(config);
String prefix = HtmlCleanerTemplate.class.getName();
HtmlCleanerTemplate template = (HtmlCleanerTemplate)cacheManager.get(source, prefix);
if (template == null) {
HtmlCleanerFactory factory = new HtmlCleanerFactory();
InputSource is = SourceUtil.getInputSource(source);
template = factory.buildTemplate(is);
cacheManager.set(template, source, prefix);