code: @SuppressWarnings({ "rawtypes", "unchecked" })
      @Deprecated
      public static Hashtable getContext() {
          Map map = org.slf4j.MDC.getCopyOfContextMap();
  
          if (map != null) {
              return new Hashtable(map);
          } else {
              return new Hashtable();
          }
      }
docs: This method is not part of the Log4J public API. However it
  has been called by other projects. This method is here temporarily
  until projects who are depending on this method release fixes.