BZ-1070097 - History commands sent via JMS require deploymentId to be set
(cherry picked from commit 7cd6d62026f4b4073906834cd9025fed177a4696)