code: public void markAsRead() throws IOException, ClassNotFoundException {
          if (!this.isMarkedAsRead()) {
              FileOutputStream fileOut = getMotdFileOutputStreamProvider().createFileOutputStream(getNextSerializationFileName());
              ObjectOutputStream out = new ObjectOutputStream(fileOut);
              out.writeObject(entry);
              out.close();
              fileOut.close();
          }
      }
docs: Marks this message of the day as read.
  
  @throws IOException            If the info if this message of the day is marked as read
  cannot be read from the computers hard disk
  @throws ClassNotFoundException This exception occurs if you did not add the
  <a href="https://rometools.github.io/rome/index.html">ROME
  library</a> to your classpath. If you use maven don't worry
  about this exception as maven already added the library for
  you.