public static void setRomanticTransaction ( RomanticTransaction romanticTransaction ) { if ( romanticTransaction == null ) { String msg = "The argument 'romanticTransaction' should not be null." ; throw new IllegalArgumentException ( msg ) ; } Stack < RomanticTransaction > stack = threadLocal . get ( ) ; if ( stack == null ) { stack = new Stack < RomanticTransaction > ( ) ; threadLocal . set ( stack ) ; } stack . push ( romanticTransaction ) ; }
Set the value of the romantic transaction .