}
SessionProfile profile = (SessionProfile) entityDao.get(SessionProfile.class,
sessionProfileId);
// initialize profile.categoryprofiles
for (Long categoryId : profile.getCategoryProfiles().keySet()) {
CategoryProfile categoryProfile = profile.getCategoryProfiles().get(categoryId);
entityDao.initialize(categoryProfile);
}
return profile;
}