def ProcessMessages(self, msgs=None, token=None):
    """Process the new file and add to the file store."""
    if not data_store.AFF4Enabled():
      return

    filestore_fd = aff4.FACTORY.Create(
        legacy_filestore.FileStore.PATH,
        legacy_filestore.FileStore,
        mode="w",
        token=token)

    for vfs_urn in msgs:
      with aff4.FACTORY.Open(vfs_urn, mode="rw", token=token) as vfs_fd:
        try:
          filestore_fd.AddFile(vfs_fd)
        except Exception as e:  # pylint: disable=broad-except
          logging.exception("Exception while adding file to filestore: %s", e)
Process the new file and add to the file store.