this.ctx_create = new Ctx_Create(epr, this.stubConf, this.pr);
}
private void validateEndpoint() throws ParameterProblem {
final EndpointReferenceType epr;
if (this.stubConf.getEPR() == null) {
if (this.args.targetServiceUrl == null) {
throw new ParameterProblem(name() + " requires a " +
"Context Broker URL, see \"" +
Opts.CTX_CREATE_OPT_STRING + " -h\"");
}
try {
epr = new EndpointReferenceType(
new Address(this.args.targetServiceUrl));
} catch (URI.MalformedURIException e) {
throw new ParameterProblem("Given context broker URL " +
"appears to be invalid: " + e.getMessage(), e);
}
this.stubConf.setEPR(epr);
} else {
epr = this.stubConf.getEPR();
this.args.targetServiceUrl = epr.getAddress().toString();
}
if (this.pr.enabled()) {
// address print
final String msg = "Context Broker:\n " +