Service oldService = serviceManager.getService(serviceId);
String serviceName = null;
if (oldService != null) {
// TODO: Change this once the necessary improvements are in the governance API
serviceName = oldService.getQName().getLocalPart();
serviceManager.removeService(serviceId);
}
// Create a new service (Use the discovery namespace)
if (serviceName == null) {
serviceName = DiscoveryConstants.SERVICE_NAME_PREFIX +