String (File file) { try { String fileText; if (file.isDirectory()) { File directivesFile = new File(file, DIRECTIVES_FILE_NAME); if (!directivesFile.exists()) return ""; fileText = FileUtil.loadFile(directivesFile); } else { fileText = FileUtil.loadFile(file); } return fileText; } catch (IOException e) { throw new RuntimeException(e); } }