/**
  * called during undeployment of an xts-demo web service to ensure the recovery module for the
  * demo is deinstalled once none of the services is active
  */
 public static void unregister() {
   if (serviceCount > 0) {
     serviceCount--;
     if (serviceCount == 0) {
       XTSBARecoveryManager.getRecoveryManager().unregisterRecoveryModule(theRecoveryModule);
     }
   }
 }
 /**
  * called during deployment of an xts-demo web service to ensure the recovery module for the demo
  * is installed whenever any of the services is active
  */
 public static void register() {
   if (theRecoveryModule == null) {
     theRecoveryModule = new DemoBARecoveryModule();
   }
   if (serviceCount == 0) {
     XTSBARecoveryManager.getRecoveryManager().registerRecoveryModule(theRecoveryModule);
   }
   serviceCount++;
 }