try {
ServerServices serverServices = this.configuration.getServerServices();
if (serverServices != null) {
DiscoveryServerService discoveryServerService = serverServices.getDiscoveryServerService();
serverUpdates = discoveryServerService.upgradeResources(upgradeRequests);
}
} catch (Exception e) {
log.error("Failed to process resource upgrades on the server.", e);
throw e;
}