RHQ's Criteria API is a powerful ad-hoc querying tool. But it does have
some nuances that have tripped up both developers and remote API/CLI
users. Take a look at this new wiki page before the next time you code
with Criteria. Make additions if you have any additional tips!
https://docs.jboss.org/author/display/RHQ/Criteria+API+Tips
Jay