[rhq-project/rhq] 325cb8: [BZ 185375] simplify queries and TTL calculations