/** Gets a context associated with current thread */ public static DapCtx ctx() { DapCtx context = CtxAssociator.getCtx(); if (context == null) { context = create(); setCtx(context); } return context; }
/** set DapCtx for current thread. */ public void setSameCxtForCurrentThread() { DapCtx.setCtx(this); }