template_simple_message should use a defined class and not decide any

Signed-off-by: emanuele <emanuele45@gmail.com>