Resolved PMD violation:

<violation beginline="307" endline="309" begincolumn="17" endcolumn="17" rule="CollapsibleIfStatements" ruleset="Basic" package="com.adobe.acs.commons.contentfinder.querybuilder.impl" class="ContentFinderHitBuilder" method="getPage" externalInfoUrl="http://pmd.sourceforge.net/pmd-5.0.2/rules/java/basic.html#CollapsibleIfStatements" priority="3">
These nested if statements could be combined