@Override
    public void persistChanges() {
        for (NoteEntity noteEntity : noteList) {
            boolean writeSuccessful = this.writeNoteEntity(noteEntity);
            if (!writeSuccessful) {
                Logger.getLogger(FilebasedNoteService.class.getName()).log(Level.SEVERE, "Can't write note entity to disk: " + noteEntity);
            }
        }
    }