check(mi, dest, CheckType.WRITE, prod.getSessionEndpoint().getConnectionEndpoint());
check(dest, CheckType.WRITE, prod.getSessionEndpoint().getConnectionEndpoint());
   public Object handleSend(Invocation invocation) throws Throwable   {      //anonymous producer            //if destination is not null then write permissions required            MethodInvocation mi = (MethodInvocation)invocation;            Destination dest = (Destination)mi.getArguments()[0];            ProducerAdvised del = (ProducerAdvised)invocation.getTargetObject();      ServerProducerEndpoint prod = (ServerProducerEndpoint)del.getEndpoint();                        if (dest != null)      {         //Anonymous producer         check(mi, dest, CheckType.WRITE, prod.getSessionEndpoint().getConnectionEndpoint());      }            return invocation.invokeNext();   }   