for (InstalledPackage installedPackage : installedPackageList) {
ResourcePackageDetails transferPackage = ContentManagerHelper.installedPackageToDetails(installedPackage);
transferPackages.add(transferPackage);
}
DeletePackagesRequest transferRequest = new DeletePackagesRequest(persistedRequest.getId(), resourceId,
transferPackages);
// Make call to agent
try {
AgentClient agentClient = agentManager.getAgentClient(agent);