}
AvailabilityReport report = null;
// first, quickly see if we can even ping the agent, if not, don't bother trying to get the resource avail
boolean agentPing = client.pingService(5000L);
if (agentPing) {
// we can't serialize the resource due to the hibernate proxies (agent can't deserialize hibernate objs)
// but we know we only need the basics for the agent to collect availability, so create a bare resource object
Resource bareResource = new Resource(res.getResourceKey(), res.getName(), res.getResourceType());
bareResource.setId(res.getId());