Fixed a bug with hql request, added basic configuration support.
Authored by: tse 2012-04-26
Parent: [r5307]
Child: [r5309]