throw new IllegalStateException(e);
}
if (!info.isSuccess()) {
throw new IllegalStateException("Failed to call " + goal);
}
Term binding;
try {
binding = info.getTerm("P");
} catch (NoSolutionException e) {
throw new IllegalStateException("Failed to call " + goal, e);
} catch (UnknownVarException e) {