Client client = (Client)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.INVOKER_CLIENT);
Client client = getState(invocation).getClient();
   public Object handleSetExceptionListener(Invocation invocation) throws Throwable   {      justCreated = false;            MethodInvocation mi = (MethodInvocation)invocation;            exceptionListener = (ExceptionListener)mi.getArguments()[0];                        Client client = (Client)invocation.getMetaData(MetaDataConstants.JMS, MetaDataConstants.INVOKER_CLIENT);      if (client == null)      {         throw new java.lang.IllegalStateException("Cannot find remoting client");      }            if (exceptionListener != null)      {         client.addConnectionListener(this);         listenerAdded = true;      }      else      {                     if (listenerAdded)         {            client.removeConnectionListener(this);         }      }      return null;   }