code: private void releaseContext(String contextId) {
          if (mode == ContextLockingMode.DEACTIVATED) {
              return;
          }
          synchronized (activeWritingContexts) {
              activeWritingContexts.remove(contextId);
          }
      }
docs: If the context locking mode is activated, this method releases the lock for the given context for writing
  operations.