if (!userContainer.containsPrincipal(username)) {
loadUsers(username, false);
}
if (!userContainer.containsPrincipal(username)) {
throw new UserNotFoundException(username + " is not a valid user!");
}
return userContainer.retrievePrincipal(username);
}