Or you can even use Byteman http://www.jboss.org/byteman. Docs are here http://www.jboss.org/byteman/documentation
Juan,
Did u get any workaround?Im also facing same issue.