protected void setRegistryService(RegistryService registryService) {
   try {
     RegistryPersistenceManager.setRegistryService(registryService);
   } catch (Exception e) {
     log.error("Cannot retrieve System Registry", e);
   }
 }
 protected void unsetRegistryService(RegistryService registryService) {
   RegistryPersistenceManager.setRegistryService(null);
 }