private ApplicationFile writeFile(byte[] data) {
        if (file.getParentFile() != null)
            file.getParentFile().mkdirs();

        String status = file.exists() ? ApplicationFile.ContentStatusChanged : ApplicationFile.ContentStatusNew;
        uncheck(() -> Files.write(file.toPath(), data));
        uncheck(() -> writeMetaFile(data, status));
        return this;
    }
@author Ulf Lilleengen
@author Vegard Havdal
config-application-package/src/main/java/com/yahoo/config/model/application/provider/FilesApplicationFile.java