JBossMessage copy = null;  if (m instanceof BytesMessage)
else if (m instanceof BytesMessage)
   public static JBossMessage copy(Message m) throws JMSException   {      if (m instanceof JBossMessage)      {         // more efficient than duplicating a foreign message         return ((JBossMessage)m).doClone();      }      JBossMessage copy = null;      if (m instanceof BytesMessage)      {         copy = new JBossBytesMessage((BytesMessage)m);      }      else if (m instanceof MapMessage)      {         copy = new JBossMapMessage((MapMessage)m);      }      else if (m instanceof ObjectMessage)      {         copy = new JBossObjectMessage((ObjectMessage)m);      }      else if (m instanceof StreamMessage)      {         copy = new JBossStreamMessage((StreamMessage)m);      }      else if (m instanceof TextMessage)      {         copy = new JBossTextMessage((TextMessage)m);      }      else      {         copy = new JBossMessage(m);      }      return copy;   }