public static Torch torch ( ) { if ( ! isLoaded ( ) ) { throw new IllegalStateException ( "Factory is not loaded!" ) ; } LinkedList < Torch > stack = STACK . get ( ) ; if ( stack . isEmpty ( ) ) { stack . add ( factoryInstance . begin ( ) ) ; } return stack . getLast ( ) ; }
This is the main method that will initialize the Torch .