private void fillEmptyRefs(ArchiveDatabase archiveDatabase) {
        for (UpdateItem emptyRef : emptyRefs) {
            FileItem file = new FileItem();
            file.setName(emptyRef.getName());
            if (emptyRef.isAttribDefined()) {
                file.setAttributes(emptyRef.getAttrib());
                file.setAttributesDefined(true);
            }

            file.setSize(emptyRef.getSize());
            file.setDirectory(emptyRef.isDir());
            file.setHasStream(emptyRef.hasStream());
            archiveDatabase.addMTimeDefined(emptyRef.ismTimeDefined());
            if (emptyRef.ismTimeDefined()) {
                archiveDatabase.addMTime(emptyRef.getmTime());
            }
            archiveDatabase.addFile(file);
        }
    }