return null;
}
log.debug("loadUserByUsername " + username);
ServerSideUser serverUser = null;
if (useCache) {
serverUser = (ServerSideUser) userCache
.getUserFromCache(username);
}
User u;
if (serverUser == null) {
u = userDAO.getUserByUsername(username);
userCache.putUserInCache(new ServerSideUser(u));
} else {
u = serverUser.getUser();
}
return u;
}