// with a 404 error
try {
HttpResponse response = prediction.trainedmodels()
.get(MODEL_ID).executeUnparsed();
if (response.getStatusCode() == 200) {
training = response.parseAs(Training.class);
String trainingStatus = training.getTrainingStatus();
if (trainingStatus.equals("DONE")) {
System.out.println();
System.out.println("Training completed.");
System.out.println(training.getModelInfo());