code: protected void beforeDelivery(final SIBusMessage message, final MessageEndpoint endpoint)
              throws ResourceException {
  
          final String methodName = "beforeDelivery";
          if (TRACE.isEntryEnabled()) {
              SibTr.entry(this, TRACE, methodName, new Object [] { message, endpoint });
          }
          
          // This will call before delivery on the endpoint
          beforeDelivery (endpoint);
  
          /*
           * Delete the message under the transaction
           */
          deleteMessage(message, getTransactionForDelete ());
  
      }
docs: Invoked before delivery of a message. Calls <code>beforeDelivery</code>
  on the endpoint and then deletes the message under that transaction.
  
  @param message
  the message that is about to be delivered
  @param endpoint
  the message endpoint we are using
  @throws ResourceAdapterInternalException
  if the endpoint method does not exist or the
  <code>XAResource</code> is not enlisted
  @throws ResourceException
  if before delivery failed