code: public final AbstractItem removeFirstMatching(Filter filter, PersistentTransaction transaction)
              throws MessageStoreException
      {
          AbstractItem found = null;
          for (int priority = Priorities.HIGHEST_PRIORITY; null == found
                  && priority >= Priorities.LOWEST_PRIORITY; priority--)
          {
              LinkedList tl = _prioritySublists[priority];
              if (null != tl)
              {
                  found = tl.removeFirstMatching(filter, transaction);
                  if (null != found && TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  {
                      SibTr.debug(this, tc, "found item: " + found);
                  }
              }
          }
          return found;
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.sib.msgstore.ItemCollection#removeFirstMatching(com.ibm.ws.sib.msgstore.Filter,
  com.ibm.ws.sib.msgstore.Transaction)