We removed the EnableKeyValueRepositories in favor of store specific implementations. In this case EnableMapRepositories.
The configuration now defaults a KeyValueTemplate with a MapKeyValueAdapter but allows overriding the template in a bean named keyValueTemplate.
We now throw DuplicateKeyException instead of InvalidDataAccessApiUsageException in case an object with given id already exists.
Original pull request: spring-projects/spring-data-commons#106.