del = new ObjectMessageDelegate((JBossObjectMessage)m);
del = new ObjectMessageDelegate((JBossObjectMessage)m, deliveryCount);
   public static MessageDelegate createThinDelegate(JBossMessage m)   {      MessageDelegate del = null;            if (m instanceof BytesMessage)      {         del = new BytesMessageDelegate((JBossBytesMessage)m);      }      else if (m instanceof MapMessage)      {         del = new MapMessageDelegate((JBossMapMessage)m);      }      else if (m instanceof ObjectMessage)      {         del = new ObjectMessageDelegate((JBossObjectMessage)m);      }      else if (m instanceof StreamMessage)      {         del = new StreamMessageDelegate((JBossStreamMessage)m);      }      else if (m instanceof TextMessage)      {         del = new TextMessageDelegate((JBossTextMessage)m);      }            else if (m instanceof JBossMessage)      {         del = new MessageDelegate(m);      }           return del;   }