We probably get an exception here if the type of message is not known.