Function<ReadableWaveletData, Boolean> matchesFunction, WaveMap waveMap) {
WaveViewData view = WaveViewDataImpl.create(waveId); // Copy of the wave built up for search hits.
for (WaveletId waveletId : waveletIds) {
WaveletContainer waveletContainer = null;
WaveletName waveletname = WaveletName.of(waveId, waveletId);
// TODO (Yuri Z.) This loop collects all the wavelets that match the
// query, so the view is determined by the query. Instead we should
// look at the user's wave view and determine if the view matches the