Bruno, currently there is nothing stored for the message other than the message text itself so no way to tell if it was informational versus a warning.
We would need to change the message stuff to track a message type as well (maybe message, warning, error or something like that) to be able to decide what css class to use.