Reworked EnlistResourceHandler: changed the regex to work with a different line from JBoss log files, which contains the global tx_id. Removed ThreadDirectory as no longer required and reworked BeginTxHandler to remove dependency on ThreadDirectory