public function onEnter()
 {
     PHPWS_Core::initModClass('hms', 'HMS_Email.php');
     PHPWS_Core::initModClass('hms', 'StudentFactory.php');
     PHPWS_Core::initModClass('hms', 'HMS_Activity_Log.php');
     $application = $this->rlcAssignment->getApplication();
     $term = $application->getTerm();
     $username = $application->getUsername();
     $community = $this->rlcAssignment->getRlc();
     $student = StudentFactory::getStudentByUsername($username, $term);
     HMS_Email::sendRlcInviteEmail($student, $community, $term, $this->respondByTimestamp);
     HMS_Activity_Log::log_activity($student->getUsername(), ACTIVITY_RLC_INVITE_SENT, UserStatus::getUsername());
 }