// now make a complete comparison of local-vs-remote changes.
ResourceCollectionDiff diff = getDiff();
applySyncFilter(diff, filter);
pt.click("Computed local-vs-remote diff");
if (diff == null || diff.noDifferencesFound())
return false;
// if any files are present only in our local collection (but not in
// the remote collection), delete the local files.
for (String resourceName : diff.getOnlyInA()) {