Modify instrument logic for JBoss EAP 6