public UserAndToken getCurrentUser() throws BusinessException {
try {
UserAndToken rtn = userService.getCurrentUserAndToken();
if (rtn.getUser() != null) {
log.info("GWT get current user... "
+ rtn.getUser().getUsername());
// System.out.println("\n\n\n---------------");
// System.out.println("user school rankings: "
// + user.getSchoolRankings().size());
// System.out.println("user process types: "
// + user.getProcessTypes().size());
User fetched = userService.getUserByNicknameFullFetch(rtn
.getUser().getNickname());
System.out.println("\n\n---------------");
System.out.println("fetched school rankings: "
+ fetched.getSchoolRankings().size());
System.out.println("fetched process types: "
+ fetched.getProcessTypes().size());
rtn.setUser(fetched);
}
log.debug("Returning "+rtn);
return rtn;
} catch (UsernameNotFoundException u) {