fixed getRepositoryFor method. Now it can detect repository by interface