if (dest != null) {  check(dest, CheckType.WRITE, conn); }
check(dest, CheckType.WRITE, conn);
   public Object handleSend(Invocation invocation) throws Throwable   {      // anonymous producer - if destination is not null then write permissions required            MethodInvocation mi = (MethodInvocation)invocation;            Message m = (Message)mi.getArguments()[0];      Destination dest = m.getJMSDestination();      SessionAdvised del = (SessionAdvised)invocation.getTargetObject();      ServerSessionEndpoint sess = (ServerSessionEndpoint)del.getEndpoint();      ServerConnectionEndpoint conn = sess.getConnectionEndpoint();                        if (dest != null)      {         // Anonymous producer         check(dest, CheckType.WRITE, conn);      }            return invocation.invokeNext();   }   