}
return null; // good context not found
}
public static Version parseVersionResponse(SuccessCommandResponse versionResponse) {
VersionBody body;
try {
body = versionResponse.body().asVersionBody();
} catch (JsonProtocolParseException e) {
throw new RuntimeException(e);
}
String versionString = body.getV8Version();
if (versionString == null) {
return null;
}
return Version.parseString(versionString);
}