progress = new DefaultProgress(0.3, _("instanceLoader.checkingRemote"));
try {
URL packagesURL = launcher.getPackagesURL();
PackageList packages = HttpRequest
.get(packagesURL)
.execute()
.expectResponseCode(200)
.returnContent()
.asJson(PackageList.class);
if (packages.getMinimumVersion() > Launcher.PROTOCOL_VERSION) {
throw new LauncherException("Update required", _("errors.updateRequiredError"));
}
for (ManifestInfo manifest : packages.getPackages()) {
boolean foundLocal = false;
for (Instance instance : local) {
if (instance.getName().equalsIgnoreCase(manifest.getName())) {
foundLocal = true;