/** * Wrap the fetcher to include the element itself. */ public SimpleValueFetcher wrapFetcher(final IValueFetcher fetcher) { SimpleValueFetcher ret = new SimpleValueFetcher(fetcher); ret.setValue(getFetcherName(), this); return ret; }
/** * Add reason to fetcher. */ @Override public SimpleValueFetcher wrapFetcher(IValueFetcher fetcher) { SimpleValueFetcher ret = super.wrapFetcher(fetcher); if(reason instanceof RParameterElement) { ret.setValue(((RParameterElement)reason).getFetcherName(), reason); } return ret; }