// test location
File location = new File(locationStr);
if (!location.exists()) {
boolean created = location.mkdirs();
if (!created)
throw new ConfigurationException("Unable to create cache loader location " + location);
}
if (!location.isDirectory()) {
throw new ConfigurationException("Cache loader location [" + location + "] is not a directory!");
}
try {
openDatabase(new File(location, cacheDbName));
} catch (Exception e) {
throw new ConfigurationException(e);
}
log.debug("cleaning up expired entries...");
purgeInternal();