private void checkVersion() throws Exception {
        HttpUrl statusUrl = HttpUrl.parse(endpoint)
            .newBuilder()
            .addPathSegment("system")
            .addPathSegment("status")
            .build();

        Request request = buildRequest(statusUrl);
        Call call = client.newCall(request);
        Response response = call.execute();

        checkStatusOk(response);

        SystemStatusBean systemStatus = OBJECT_MAPPER.readValue(response.body().bytes(), SystemStatusBean.class);

        if (!systemStatus.isUp()) {
            throw new IllegalStateException("Server down " + systemStatus);
        }

        ComparableVersion systemVersion = new ComparableVersion(systemStatus.getVersion());
        ComparableVersion maxVersion = new ComparableVersion("2.0.0.Final");

        if (systemVersion.compareTo(maxVersion) > 0) {
            throw new IllegalArgumentException("Server version is " + systemVersion + ". Any version after "
                + maxVersion + " does not need to apply this specific migration.");
        }
    }
Enrich pre-2.1.0.Final release.

Adds the missing ApiDefinition field to older Apiman export files.

@author Marc Savy {@literal <marc@blackparrotlabs.io>}
migration-assistant/src/main/java/io/apiman/migration/fix_pre_21/EnrichPre21ExportCommand.java