if (file.isDirectory()) {
loadFiles(file.listFiles(), all);
} else if (file.getName().toLowerCase(Locale.ENGLISH).endsWith(".js")
|| file.getName().toLowerCase(Locale.ENGLISH).endsWith(".json")) {
if (!file.exists()) {
throw new ContainerConfigException("The file '" + file.getAbsolutePath() + "' doesn't exist.");
}
loadFromString(ResourceLoader.getContent(file), all);
} else {
if (LOG.isLoggable(Level.FINEST))
LOG.finest(file.getAbsolutePath() + " doesn't seem to be a JS or JSON file.");
}
}
} catch (IOException e) {
throw new ContainerConfigException(e);
}
}