docs: public static InternalKnowledgeRuntime retrieveKnowledgeRuntime(Object streamContext) {
          InternalKnowledgeRuntime kruntime = null;
          if ( streamContext instanceof MarshallerWriteContext ) {
              MarshallerWriteContext context = (MarshallerWriteContext) streamContext;
              kruntime = ((InternalWorkingMemory) context.wm).getKnowledgeRuntime();
          }
          else if ( streamContext instanceof MarshallerReaderContext ) {
              MarshallerReaderContext context = (MarshallerReaderContext) streamContext;
              kruntime = ((InternalWorkingMemory) context.wm).getKnowledgeRuntime();
          }
          else {
              throw new UnsupportedOperationException( "Unable to retrieve " + ProcessInstanceManager.class.getSimpleName() + " from "
                                                       + streamContext.getClass().getName() );
          }
          return kruntime;
      }