INT-3150 Add support for max-number-of-results-expression.

* Add support to Retrieving gateways to accept the ``max-number-of-results-expression`` attribute.

JIRA: https://jira.springsource.org/browse/INT-3150