You should introduce a new variable here. The thing called "page", suddenly becomes "part of page", but is still called "page". Don't be shy of introducing additional variables, if you can declare other variables (e.g. the page) final at the same time.