public static TxXATerminator instance ( String providerId ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "instance" , providerId ) ; final TxXATerminator xat ; synchronized ( _txXATerminators ) { if ( _txXATerminators . containsKey ( providerId ) ) { xat = ( TxXATerminator ) _txXATerminators . get ( providerId ) ; } else { xat = new TxXATerminator ( providerId ) ; _txXATerminators . put ( providerId , xat ) ; } } if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "instance" , xat ) ; return xat ; }
Return the TxXATerminator instance specific to the given providerId