code: public void dispose() {
          if (registration == null) {
              LOGGER.warn("Trying to unregister application {} which is not registered", applicationName);
              return;
          }
          registration.unregister();
          registration = null;
      }
docs: <p>dispose.</p>