return new JBossMapMessage();
JBossMessage jbm = new JBossMapMessage(); jbm.setOrdering(ordering++); return jbm;
   public Object invoke(Invocation invocation) throws Throwable   {      if (invocation instanceof JMSMethodInvocation)      {         JMSMethodInvocation mi = (JMSMethodInvocation)invocation;         Method m = mi.getMethod();         String methodName = m.getName();         if ("createMessage".equals(methodName))         {            return new JBossMessage();         }         else if ("createBytesMessage".equals(methodName))         {            return new JBossBytesMessage();         }         else if ("createMapMessage".equals(methodName))         {            return new JBossMapMessage();         }         else if ("createObjectMessage".equals(methodName))         {         	JBossObjectMessage msg = new JBossObjectMessage();         	if (mi.getArguments() != null)         	{         		msg.setObject((Serializable)mi.getArguments()[0]);         	}         	return msg;         }         else if ("createStreamMessage".equals(methodName))         {            return new JBossStreamMessage();         }         else if ("createTextMessage".equals(methodName))         {         	JBossTextMessage msg = new JBossTextMessage();         	if (mi.getArguments() != null)         	{         		msg.setText((String)mi.getArguments()[0]);         	}         	return msg;         }      }      return invocation.invokeNext();   }