created abstract factory for paginator adapter