// If the new BusinessService has a ServiceKey then it must already
// exists so delete the old one. It a ServiceKey isn't specified then
// this is a new BusinessService so create a new ServiceKey for it.
if ((serviceKey != null) && (serviceKey.length() > 0))
dataStore.deleteService(serviceKey);
else
service.setServiceKey(uuidgen.uuidgen());
// everything checks out so let's save it.
dataStore.saveService(service);