[5.0] Contracts : add pagination factory

New line at EOF please.