These checks should really be applied in the core classes not the JMS wrapper.
This is actually a general point - always fix in core if possible - JMS classes should be a thin wrapper around core.