Generic repository

- Fixed, repositories having the same model name are not returned
correctly.