this.publication = publication;
}
public void saveNotifierBinding(String authInfo, String bindingXML, String bindingKey, Integer port) {
try {
SaveBinding sb = new SaveBinding();
sb.setAuthInfo(authInfo);
BindingTemplate btIn = (BindingTemplate)EntityCreator.buildFromDoc(bindingXML, "org.uddi.api_v3");
String value = btIn.getAccessPoint().getValue();
value = value.replace("{randomPort}", port.toString());
sb.getBindingTemplate().add(btIn);
publication.saveBinding(sb);
}
catch(Exception e) {
logger.error(e.getMessage(), e);
Assert.fail("No exception should be thrown: " + e.getMessage());