// although the data came from the agent this should be processed like a server-side report
// because it was requested and initiated by the server (bz 1094540). The availabilities will
// still be merged but certain backfill logic will remain unscathed.
report.setServerSideReport(true);
AvailabilityType foundAvail = report.forResource(res.getId());
if (foundAvail != null) {
availabilityManager.mergeAvailabilityReport(report);
} else {
foundAvail = res.getCurrentAvailability() == null ? AvailabilityType.UNKNOWN : res
.getCurrentAvailability().getAvailabilityType();