I have a repository definition like

```
public interface UserRepository extends CrudRepository<User, Long> {}

```

In the Spring context file I have 

```
<jpa:repositories base-package="my.package"/>

```

Then I try to do something like

```
new Repositories(applicationContext).getRepositoryFor(User.class);

```

but I get the error

> 
> Method "getRepositoryFor" with signature
>  "(Ljava/lang/Class;)Lorg/springframework/data/repository/CrudRepository;"
>  is not applicable on this object
> 
> 
> 

Does anyone have any idea what could have I done wrong?