public File getWorksheetImagesDir() {
File worksheetDir = getWorksheetDir();
File worksheetImagesDir = new File(worksheetDir, "images");
if (worksheetImagesDir.exists() && !worksheetImagesDir.isDirectory()) {
throw new SpagoBIEngineRuntimeException("Cannot create worksheet images dir! A file with the same name exists!");
}
if (!worksheetImagesDir.exists()) {
boolean success = worksheetImagesDir.mkdirs();
if (!success) {
throw new SpagoBIEngineRuntimeException("Cannot create worksheet images dir!");
}
}
return worksheetImagesDir;
}