public static void setMessageProperties( Message message, Request request, Hermes hermes, SubmitContext submitContext )
{
if( request instanceof AbstractHttpRequest )
{
JMSPropertiesConfig jmsPropertyConfig = ( ( AbstractHttpRequest<?> )request ).getJMSPropertiesConfig();
try
{
List<JMSPropertyConfig> propertyList = jmsPropertyConfig.getJMSProperties();
StringToStringMap stringToStringMap = new StringToStringMap( propertyList.size() );
for( JMSPropertyConfig jmsProperty : propertyList )
{
stringToStringMap.put( jmsProperty.getName(), jmsProperty.getValue() );
}