Please rename `continueList` to `continueListXmlId` or `continueListId`. There are already variables named `list` and `previousList`, which are both of type Element, so `continueList` following a similar naming pattern could be misunderstood to be another Element.