private static void makeDirectoriesRecursive(File file) {
        if (!file.mkdirs() && !file.isDirectory()) {
            throw new RuntimeException("Could not create directory " + file.getPath());
        }
    }
Creates a new file and all its parent directories, and provides a file output stream to the file.
bundle-plugin/src/main/java/com/yahoo/container/plugin/util/IO.java