@Override
    public User createUser(String username, String password, String name, String email) throws UserAlreadyExistsException
    {
        if (data.containsKey(username)) {
            throw new UserAlreadyExistsException();
        }
        final User user = new User(username, name, email, new Date(), new Date());
        data.put(username, user);
        return user;
    }
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