The "includeRequired" parameter (the last boolean before ctx.getStartIndex() should be ctx.getIncludeAll().