try
{
final CommandType commandType = CommandType.valueOf(jmsMessage
.getStringProperty(DistributedTestConstants.MSG_COMMAND_PROPERTY));
final JsonHandler jsonHandler = new JsonHandler();
command = jsonHandler.unmarshall(jmsMessage.getStringProperty(DistributedTestConstants.MSG_JSON_PROPERTY),
getCommandClassFromType(commandType));
}
catch (final JMSException jmse)
{
throw new DistributedTestException("Unable to convert JMS message " + jmsMessage + " to command object",