public final Item findFirstMatchingItem(final Filter filter) throws MessageStoreException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "findFirstMatchingItem", filter);

        ItemCollection ic = ((ItemCollection) _getMembership());
        if (null == ic)
        {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "findFirstMatchingItem");
            throw new NotInMessageStore();
        }
        Item item = null;
        if (ic != null)
        {
            item = (Item) ic.findFirstMatchingItem(filter);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "findFirstMatchingItem", item);
        return item;
    }
public final Item findFirstMatchingItem ( final Filter filter ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "findFirstMatchingItem" , filter ) ; ItemCollection ic = ( ( ItemCollection ) _getMembership ( ) ) ; if ( null == ic ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "findFirstMatchingItem" ) ; throw new NotInMessageStore ( ) ; } Item item = null ; if ( ic != null ) { item = ( Item ) ic . findFirstMatchingItem ( filter ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "findFirstMatchingItem" , item ) ; return item ; }
@param filter may be null
@return Item may be null.