// -------------------------------------------------------------------------
private void _runImpl() throws ParameterProblem, ExecutionProblem, ExitNow {
if (this.ctx_create == null) {
throw new ExecutionProblem("run called w/o validate (?)");
}
if (this.dryrun) {
if (this.pr.enabled()) {
final String msg = "Dryrun, done.";
if (this.pr.useThis()) {
this.pr.infoln(PrCodes.CTXMONITOR__DRYRUN, msg);
} else if (this.pr.useLogging()) {
logger.info(msg);
}
}
return; // *** EARLY RETURN ***
}
CreateContextResponse_Type resp;
try {
resp = this.ctx_create.create();
} catch (NimbusContextualizationFault e) {
final String err =
CommonStrings.faultStringOrCommonCause(e, "context broker");
throw new ExecutionProblem(err, e);
}
this.writeContextEprPossibly(resp.getContextEPR());
this.writeBrokerContactPossibly(resp.getContact());
}