Properties props = new Properties();
Log log = getLog();
if (!targetDirectory.exists()) {
targetDirectory.mkdirs();
} else if (!targetDirectory.isDirectory()) {
log.warn("Something strange here as the "
+ "supposedly target directory is not a directory.");
return props;
}
File cacheFile = new File(targetDirectory, CACHE_PROPERTIES_FILENAME);