// If the new BindingTemplate has a BindingKey then it must already
// exists so delete the old one. It a BindingKey isn't specified then
// this is a new BindingTemplate so create a new BindingKey for it.
if ((bindingKey != null) && (bindingKey.length() > 0))
dataStore.deleteBinding(bindingKey);
else
binding.setBindingKey(uuidgen.uuidgen());
// everything checks out so let's save it.
dataStore.saveBinding(binding);