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

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

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "findFirstMatching", item);
        return item;
    }
public final ItemReference findFirstMatching ( final Filter filter ) throws MessageStoreException { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "findFirstMatching" , filter ) ; ReferenceCollection ic = ( ( ReferenceCollection ) _getMembership ( ) ) ; if ( null == ic ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "findFirstMatching" ) ; throw new NotInMessageStore ( ) ; } ItemReference item = null ; if ( ic != null ) { item = ( ItemReference ) ic . findFirstMatching ( filter ) ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "findFirstMatching" , item ) ; return item ; }
findFirstMatching (aka Non-Destructive get).

@param filter

@return Item may be null.
@throws {@link MessageStoreException} if the item was spilled and could not
be unspilled. Or if item not found in backing store.
@throws {@link MessageStoreException} indicates that an unrecoverable exception has
occurred in the underlying persistence mechanism.
@throws MessageStoreException