Support transaction types on DAOs
Add guards to check that jpa facet is enabled
Use CDATA rather than invoking encode as it works on earlier versions of ruby (i.e. jruby 1.6.7.2)