@Override
    public User loadUser(String username) throws UserNotFoundException
    {
        final User result = data.get(username);
        if (result == null) {
            throw new UserNotFoundException();
        }
        return result;
    }
A very basic implementation of a UserProvider, that retains data in-memory.

@author Guus der Kinderen, guus@goodbytes.nl
xmppserver/src/test/java/org/jivesoftware/openfire/user/TestUserProvider.java