/**
   * registerService
   *
   * @param wsigService
   * @throws Exception
   */
  private void registerService(WSIGService wsigService) throws Exception {

    if (null != wsigService) {
      log.info("Create new wsig service: " + wsigService.toString());

      // Register wsigService into UDDI
      if (uddiManager != null) {
        ServiceKey uddiServiceKey = uddiManager.UDDIRegister(wsigService);
        wsigService.setUddiServiceKey(uddiServiceKey);
      }

      // Store wsigService into WSIGStore
      wsigStore.addService(wsigService.getServiceName(), wsigService);
    }
  }
  private void deregisterService(WSIGService wsigService) throws Exception {

    String serviceName = wsigService.getServiceName();

    log.info("Remove wsig service " + serviceName);

    // DeRegister wsigService from UDDI
    try {
      if (uddiManager != null) {
        uddiManager.UDDIDeregister(wsigService);
      }
    } catch (Exception e) {
      log.warn("Error removing service from UDDI", e);
    }

    // Remove wsigService from WSIGStore
    wsigStore.removeService(serviceName);

    // Delete wsdl
    String filename = WSDLGeneratorUtils.getWSDLFilename(serviceName);
    log.info("Delete wsdl file " + filename);
    WSDLGeneratorUtils.deleteWSDL(filename);
  }