// some assertions
Assert.notNull(dataSource, "dataSource can not be null");
// create and initialize the broker
if (this.configLocation != null) {
this.broker = new Broker(configLocation.getInputStream(), dataSource);
} else {
this.broker = new Broker(dataSource);
}
// register text replacements
if (this.textReplacements != null && !this.textReplacements.isEmpty())
this.broker.setTextReplacements(this.textReplacements);