if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate"))
if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate") || methodName.equals("createBrowserDelegate"))
   public Object invoke(Invocation invocation) throws Throwable   {      String methodName = ((MethodInvocation) invocation).getMethod().getName();            Object retVal = invocation.invokeNext();            //TODO browser      if (methodName.equals("createSessionDelegate") || methodName.equals("createProducerDelegate"))      {         JMSInvocationHandler thisHandler = ((JMSMethodInvocation)invocation).getHandler();         JMSInvocationHandler returnedHandler =            (JMSInvocationHandler)Proxy.getInvocationHandler(retVal);         returnedHandler.setDelegate(retVal);         thisHandler.addChild(returnedHandler);      }            return retVal;         }