@Override
	public UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException {
		User user = this.userRepository.findByEmail(username);
		if (user == null) {
			throw new UsernameNotFoundException("Could not find user " + username);
		}
		return new CustomUserDetails(user);
	}
@Override
	public UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException {
		User user = this.userRepository.findByEmail(username);
		if (user == null) {
			throw new UsernameNotFoundException("Could not find user " + username);
		}
		return new CustomUserDetails(user);
	}
@ Override public UserDetails loadUserByUsername ( String username ) throws UsernameNotFoundException { User user = this . userRepository . findByEmail ( username ) ; if ( user == null ) { throw new UsernameNotFoundException ( "Could not find user " + username ) ; } return new CustomUserDetails ( user ) ; }
/*
(non-Javadoc)

@see
org.springframework.security.core.userdetails.UserDetailsService#loadUserByUsername
(java.lang.String)
/ * ( non - Javadoc )