public static void addMessageProperties(ClientMessage message,Map<String,Object> properties){
  if (properties != null && properties.size() > 0) {
    for (    Map.Entry<String,Object> property : properties.entrySet()) {
      message.putObjectProperty(property.getKey(),property.getValue());
    }
  }
}

public static void addMessageProperties ( ClientMessage message , Map < String , Object > properties ) { if ( properties != null && properties . size ( ) > 0 ) { for ( Map . Entry < String , Object > property : properties . entrySet ( ) ) { message . putObjectProperty ( property . getKey ( ) , property . getValue ( ) ) ; } } }
adds properties to a clientmessage
