File parentFile = file.getParentFile();
if (!parentFile.exists() && !parentFile.mkdirs()) {
logger.warn("Could not create directory for file in DATACLEANER_HOME: " + filename);
return;
}
ResourceManager resourceManager = ResourceManager.getInstance();
URL url = resourceManager.getUrl("datacleaner-home/" + filename);
InputStream is = null;
OutputStream os = null;
try {
is = url.openStream();