set the initial context of the calling thread to a context obtained from another thread . after this call , the calling thread will see the same results from the get method as the thread from which the context argument was obtained , at the time it was obtained . the context argument must be the result of an earlier push or getthreadcontext call . it is an error which may or may not be detected if this context has been undone by a restore . the context stack of the calling thread must be empty before this call , i.e. , there must not have been a push not undone by a subsequent restore . concode_field_sep ThreadContext previous concode_elem_sep ThreadLocal<ThreadContext> localContext concode_elem_sep Object value concode_elem_sep String key concode_field_sep ThreadContext getThreadContext concode_elem_sep boolean contains concode_elem_sep ThreadContext contextContaining concode_elem_sep void restore concode_elem_sep Object get concode_elem_sep void setContext concode_elem_sep ThreadContext getContext concode_elem_sep ThreadContext push
void function ( ThreadContext arg0 ) { if ( getContext ( ) != null ) throw new IllegalArgumentException ( "srini_string" ) ; setContext ( arg0 ) ; }