Adding getFlag(id) to FlagStore, to handle flag events.