Select the Serializzation issues inspections:

Then use the idea tools to generate the field (click on the lamp)

You have to change two files:
1: jbossjta-properties.xml (for logging more info at arjuna level)
from:
...
<property name="com.arjuna.common.util.logging.DebugLevel"
type="System" value="0x00000000">
...
to:
...
<property name="com.arjuna.common.util.logging.DebugLevel"
type="System" value="0xffffffff">
...
2: jboss-log4j.xml (to configure log4j) adding the following lines
...
<category name="com.arjuna">
<priority value="DEBUG"/>
</category>
<category name="org.jboss.tm">
<priority value="DEBUG"/>
</category>
<category name="org.jboss.resource">
<priority value="TRACE"/>
</category>
...
to filter log and show which resources was enlisted in a specific transaction, we can use a command like this:
grep -a “7f000101:c2ab:4e65eaa4:1eb” server.log | grep -a Enlisting