private void writeMetaFile(byte[] data, String status) throws IOException {
        File metaDir = createMetaDir();
        log.log(Level.FINE, () -> "meta dir=" + metaDir);
        File metaFile = new File(metaDir + "/" + getPath().getName());
        if (status == null)
            status = metaFile.exists() ? ContentStatusChanged : ContentStatusNew;

        String hash = (file.isDirectory() || status.equals(ContentStatusDeleted))
                ? ""
                : ConfigUtils.getMd5(data);
        mapper.writeValue(metaFile, new MetaData(status, hash));
    }
@author Ulf Lilleengen
@author Vegard Havdal
config-application-package/src/main/java/com/yahoo/config/model/application/provider/FilesApplicationFile.java