public Object handleCreateConnectionConsumer(Invocation invocation) throws Throwable
{
if (trace) { log.trace("createConnectionConsumer()"); }
MethodInvocation mi = (MethodInvocation)invocation;
JBossDestination dest = (JBossDestination)mi.getArguments()[0];
String subscriptionName = (String)mi.getArguments()[1];
String messageSelector = (String)mi.getArguments()[2];
ServerSessionPool sessionPool = (ServerSessionPool)mi.getArguments()[3];
int maxMessages = ((Integer)mi.getArguments()[4]).intValue();
return new JBossConnectionConsumer((ConnectionDelegate)mi.getTargetObject(), dest,
subscriptionName, messageSelector, sessionPool,
maxMessages);
}