default FeaturePackUpdatePlan getUpdatePlan(FeaturePackUpdatePlan.Request updateRequest) throws ProvisioningException { final FeaturePackLocation fpl = updateRequest.getInstalledLocation(); String latestBuild = null; try { latestBuild = getLatestBuild(fpl); } catch(LatestVersionNotAvailableException e) { // that also means no update } if (latestBuild != null && !(latestBuild.equals(fpl.getBuild()))) { updateRequest.setNewLocation(fpl.replaceBuild(latestBuild)); } return updateRequest.buildPlan(); }