payloadAsByteArray, jmsType, correlationID, correlationIDBytes,
payloadAsByteArray, persistentChannelCount, jmsType, correlationID, correlationIDBytes,
   public static Message createJBossMessage(long messageID,                                          boolean reliable,                                           long expiration,                                           long timestamp,                                          byte priority,                                          Map coreHeaders,                                          byte[] payloadAsByteArray,                                          byte type,                                          String jmsType,                                                                                 String correlationID,                                          byte[] correlationIDBytes,                                          JBossDestination destination,                                          JBossDestination replyTo,                                                                                                                        HashMap jmsProperties)   {      Message m = null;            if (type == JBossMessage.TYPE)      {         m = new JBossMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,                              payloadAsByteArray, jmsType, correlationID, correlationIDBytes,                              destination, replyTo, jmsProperties);      }      else if (type == JBossObjectMessage.TYPE)      {         m = new JBossObjectMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,               payloadAsByteArray, jmsType, correlationID, correlationIDBytes,               destination, replyTo, jmsProperties);      }      else if (type == JBossTextMessage.TYPE)      {         m = new JBossTextMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,               payloadAsByteArray, jmsType, correlationID, correlationIDBytes,               destination, replyTo, jmsProperties);      }      else if (type == JBossBytesMessage.TYPE)      {         m = new JBossBytesMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,               payloadAsByteArray, jmsType, correlationID, correlationIDBytes,               destination, replyTo, jmsProperties);      }      else if (type == JBossMapMessage.TYPE)      {         m = new JBossMapMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,               payloadAsByteArray, jmsType, correlationID, correlationIDBytes,               destination, replyTo, jmsProperties);      }      else if (type == JBossStreamMessage.TYPE)      {         m = new JBossStreamMessage(messageID, reliable, expiration, timestamp, priority, coreHeaders,               payloadAsByteArray, jmsType, correlationID, correlationIDBytes,               destination, replyTo, jmsProperties);      }      else      {          throw new IllegalArgumentException("Unknow type " + type);                             }      return m;   }