code: private void checkDestinationAccess(DestinationHandler destination,
                                          String destinationName,
                                          String busName,
                                          SecurityContext secContext)
                      throws SINotAuthorizedException
      {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(
                          tc,
                          "checkDestinationAccess",
                          new Object[] { destination,
                                        destinationName,
                                        busName,
                                        secContext });
  
          // Check authority to produce to destination
          if (!destination.checkDestinationAccess(secContext,
                                                  OperationType.SEND))
          {
              if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                  SibTr.exit(tc, "checkDestinationAccess", "not authorized to produce to this destination");
  
              // Thrown if user denied access to destination
              SIMPNotAuthorizedException e = new SIMPNotAuthorizedException(
                              nls_cwsik.getFormattedMessage(
                                                            "DELIVERY_ERROR_SIRC_18", // USER_NOT_AUTH_SEND_ERROR_CWSIP0306
                                                            new Object[] { destinationName,
                                                                          secContext.getUserName(false) },
                                                            null));
  
              e.setExceptionReason(SIRCConstants.SIRC0018_USER_NOT_AUTH_SEND_ERROR);
              e.setExceptionInserts(new String[] { destinationName, secContext.getUserName(false) });
  
              throw e;
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(tc, "checkDestinationAccess");
      }
docs: Checks the authority of a producer to produce to a destination