m = new JBossMessage((String)messageID, reliable, expiration, timestamp, coreHeaders, payload, jmsType, priority, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, jmsProperties);
m = new JBossMessage((String)messageID, reliable, expiration, timestamp, priority, deliveryCount, coreHeaders, payload, jmsType, correlationID, destinationIsQueue, destination, replyToIsQueue, replyTo, connectionID, jmsProperties);
   public static Message createMessage(Serializable messageID,                                       boolean reliable,                                        long expiration,                                        long timestamp,                                       Map coreHeaders,                                       Serializable payload,                                       int type,                                       String jmsType,                                       int priority,                                       Object correlationID,                                       boolean destinationIsQueue,                                       String destination,                                       boolean replyToIsQueue,                                       String replyTo,                                       Map jmsProperties)   {      Message m = null;      if (type == JBossMessage.TYPE)      {         m = new JBossMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                              payload, jmsType, priority, correlationID, destinationIsQueue,                              destination, replyToIsQueue, replyTo, jmsProperties);      }      else if (type == JBossObjectMessage.TYPE)      {         m = new JBossObjectMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                                    payload, jmsType, priority, correlationID, destinationIsQueue,                                    destination, replyToIsQueue, replyTo, jmsProperties);      }      else if (type == JBossTextMessage.TYPE)      {         m = new JBossTextMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                                  payload, jmsType, priority, correlationID, destinationIsQueue,                                  destination, replyToIsQueue, replyTo, jmsProperties);      }      else if (type == JBossBytesMessage.TYPE)      {         m = new JBossBytesMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                                   payload, jmsType, priority, correlationID, destinationIsQueue,                                   destination, replyToIsQueue, replyTo, jmsProperties);      }      else if (type == JBossMapMessage.TYPE)      {         m = new JBossMapMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                                 payload, jmsType, priority, correlationID, destinationIsQueue,                                 destination, replyToIsQueue, replyTo, jmsProperties);      }      else if (type == JBossStreamMessage.TYPE)      {         m = new JBossStreamMessage((String)messageID, reliable, expiration, timestamp, coreHeaders,                                    payload, jmsType, priority, correlationID, destinationIsQueue,                                    destination, replyToIsQueue, replyTo, jmsProperties);      }      else      {         throw new IllegalArgumentException("Unknown message type: " + type);      }      return m;   }