Added generic query support do Repository Service.