samples/xml/openid/src/main/java/org/springframework/security/samples/openid/CustomUserDetailsService.java
public UserDetails loadUserByUsername(String id) throws UsernameNotFoundException {
		UserDetails user = registeredUsers.get(id);

		if (user == null) {
			throw new UsernameNotFoundException(id);
		}

		return user;
	}
public UserDetails loadUserByUsername(String id) throws UsernameNotFoundException {
		UserDetails user = registeredUsers.get(id);

		if (user == null) {
			throw new UsernameNotFoundException(id);
		}

		return user;
	}
public UserDetails loadUserByUsername ( String id ) throws UsernameNotFoundException { UserDetails user = registeredUsers . get ( id ) ; if ( user == null ) { throw new UsernameNotFoundException ( id ) ; } return user ; }
Implementation of {@code UserDetailsService}. We only need this to satisfy the
{@code RememberMeServices} requirements.
Implementation of {