Phew, this is quite an example. Maybe a SQL-based example isn't the best for this. There'd be nothing wrong with faking a pageable interface with something more small. I think this might simplify the *Solution* greatly.