public List<UserRequest> getPossibleTeacherAssistants(User user) {
   AcademicController ac = new AcademicController();
   Role teacherRole = ac.searchRoleByConstant(Constants.PROFESSOR);
   return userRequestRepository.getPossibleTeacherAssistants(user, teacherRole);
 }
 public UserRequest searchUserRequest(int requestId) {
   return userRequestRepository.findById(requestId, false);
 }
 public int getProfessorRequests(User user, Role teacherRole) {
   return userRequestRepository.getNumberOfRequestsToProfessor(user, teacherRole);
 }
 public List<UserRequest> getPossibleTeachers() {
   return userRequestRepository.getPossibleTeachers();
 }
 public int getAdminRequests() {
   return userRequestRepository.getNumberOfRequestsToAdmin();
 }
 private List<UserRequest> searchTeachingRequest(int personID) {
   return userRequestRepository.searchTeachingRequest(personID);
 }
 private List<UserRequest> searchRequestByUserID(int courseId, int personId) {
   return userRequestRepository.searchUserRequestByUserID(courseId, personId);
 }
 private UserRequest updateUserRequest(UserRequest userRequest) {
   return userRequestRepository.makePersistentU(userRequest);
 }
 private UserRequest insertUserRequest(UserRequest userRequest) {
   return userRequestRepository.makePersistent(userRequest);
 }