code: public void deactivate() {
          if (entries.get() == null) {
              throw new IllegalStateException("Scope " + JoynrMessageScope.class.getSimpleName()
                      + " is not currently active. Can't deactivate.");
          }
          logger.trace("Deactivating {} scope", JoynrMessageScope.class.getSimpleName());
          entries.remove();
      }
docs: Call this method in a <code>finally</code> block after having called {@link #activate()} in order to de-activate
  the scope for the current thread.