if (actionid.equals(CMD_CHOOSE_USER)) {
int rowid = te.getRowId();
ICourse course = CourseFactory.loadCourse(ores);
if (userListCtr.getTableDataModel() instanceof UserTableDataModel) {
// in user MODE_USERFOCUS, a simple identity table is used, no wrapped identites
UserTableDataModel userListModel = (UserTableDataModel) userListCtr.getTableDataModel();
Identity assessedIdentity = userListModel.getIdentityAt(rowid);
this.assessedIdentityWrapper = AssessmentHelper.wrapIdentity(assessedIdentity,
this.localUserCourseEnvironmentCache, course, null);
} else {
// all other cases where user can be choosen the assessed identity wrapper is used
AssessedIdentitiesTableDataModel userListModel = (AssessedIdentitiesTableDataModel) userListCtr.getTableDataModel();
this.assessedIdentityWrapper = userListModel.getWrappedIdentity(rowid);
}
// init edit controller for this identity and this course node
// or use identity assessment overview if no course node is defined
if (this.currentCourseNode == null) {
UserCourseEnvironment chooseUserCourseEnv = assessedIdentityWrapper.getUserCourseEnvironment();