A Menu entry doesn't know how to serialize itself to output stream. It is taken care of at the calling site in menu group.