Extract constant
ISPN-4416 Implement sorting and pagination for non-indexed querying (phase I)

This is a simple implementation that sorts all the results just before returning them to the requestor. A second implementation will be provided based on ISPN-4358 when it becomes available.
Most of the failing non-indexed query tests are solved by this.

* Also adds *QueryDslconditionsTest.testInvalidEmbeddedAttributeQuery() to prove ISPN-4423 happens only in remote lucene based mode, but not in the other modes
* Add param validation and tests for pagination for both indexed and non-indexed sorting
ISPN-4425 Validate format of comparison operands (non-indexed query)

* Validate operand format for numeric properties
* Validate operand for embedded entities -> do not allow such predicates
ISPN-4424 Guarantee correctness of getCacheEntry for replace in Hot Rod

* When calling replaceIfUmodified, if a transaction manager available,
call the entire method withing a transaction and make getCacheEntry
use FORCE_WRITE_LOCK in order to guarantee the cache entry being
fully constructed with the right values and not partially applied.
* Return an immutable cache entry view to the client, whose values
are initialised in construction as opposed to delegating to the
underlying mutable cache entry.