Usage of raw types.

Usage of raw types in the DaoAuthenticationConfigurator and AuthenticationManagerBuilder makes build() require a cast to AuthenticationManager.

```java
    @Bean
    protected AuthenticationManager authenticationManager() throws Exception {
        return (AuthenticationManager) new AuthenticationManagerBuilder().userDetailsService(myUserDetailsService).passwordEncoder(passwordEncoder).and().build();
    }
```