code: @Invalidate
      public void stop() {
          for (ServiceRegistration<Template> reg : registrations.values()) {
              try {
                  reg.unregister();
              } catch (Exception e) { //NOSONAR
                  // Ignore it.
              }
          }
          registrations.clear();
      }
docs: Stops the collector. This methods clear all registered {@link org.wisdom.api.templates.Template} services.