context.put(ToolConstants.GEN_FROM_SEI, Boolean.FALSE);
}
builderFactory.setServiceClass(clz);
builderFactory.setDatabindingName(getDataBindingName());
// The service class determines the frontend, so no need to pass it in twice.
ServiceBuilder builder = builderFactory.newBuilder(applicationContext);
builder.validate();
if (context.get(ToolConstants.CFG_ADDRESS) != null) {
String address = (String)context.get(ToolConstants.CFG_ADDRESS);
builder.setAddress(address);
} else {
builder.setAddress(DEFAULT_ADDRESS);
}
builder.setTransportId(getTransportId());
builder.setBus(getBus());
builder.setBindingId(getBindingId());
return builder;
}