if (!(obj instanceof List)) throw new IllegalArgumentException("Digested object must be a list but is:"+obj);
List list = (List) obj;
URL sourceUrl = null;
URL rulesUrl = null;
try {
sourceUrl = getConfigURL(configPath, configSource);
rulesUrl = getConfigURL(digesterPath, digesterSource);
DigestedList digestedList = new DigestedList(list, sourceUrl, rulesUrl );
servlet.getServletContext().setAttribute(key, digestedList);
} catch (IOException e) {
log.error("Unable to create URL.", e);
}