ISPN-3807 Cache the result of HQL query parser to be reused

Use a local cache with expiring entries to store the result of the HQL parsing and reuse it
if same query is executed.

Jira: https://issues.jboss.org/browse/ISPN-3807
The class of the cached query object is LuceneQueryParsingResult in first case and ObjectFilter in the other. The class is also part of the key so the collision is avoided.