if (enrolment.getStudent() == AccessControl.getPerson().getStudent()
&& enrolment.getStudent().hasAnyActiveRegistration()) {
ExecutionCourse executionCourse = enrolment.getExecutionCourseFor(enrolment.getExecutionPeriod());
if (executionCourse != null) {
final HtmlInlineContainer inlineContainer = new HtmlInlineContainer();
inlineContainer.addChild(createExecutionCourseStatisticsLink(
BundleUtil.getString(Bundle.APPLICATION, "label.statistics"), executionCourse));
final HtmlTableCell cell = row.createCell();
cell.setClasses(getStatisticsLinkCellClass());
cell.setBody(inlineContainer);
}