// Make call to agent
try {
AgentClient agentClient = agentManager.getAgentClient(agent);
ContentAgentService agentService = agentClient.getContentAgentService();
agentService.retrievePackageBits(transferRequest);
} catch (RuntimeException e) {
LOG.error("Error while sending deploy request to agent", e);
// Update the request with the failure
contentManager.failRequest(persistedRequest.getId(), e);