private File getImagesDir() { PovrayProject proj = renderService.getProject(); FileObject fob = proj.getImagesFolder(true); File result = FileUtil.toFile(fob); assert result != null && result.exists(); return result; }