@Override
 public UserInvitationApprovalResponse retrievePendingRegRequestList() throws Exception {
   List<RegistrationRequestResponseDTO> pendingRequestsList =
       userInvitationDAO.fetchPendingRequests();
   UserInvitationApprovalResponse response = new UserInvitationApprovalResponse();
   response.setApprovalDTOList(pendingRequestsList);
   return response;
 }
 @Override
 public boolean rejectPendingRequest(int id) throws Exception {
   return userInvitationDAO.rejectNewAccountRequest(id);
 }
 @Override
 public RegistrationRequestResponseDTO getRegistrationRequest(String email) throws Exception {
   return userInvitationDAO.findRegRequestByEmail(email);
 }
 @Override
 public RegistrationRequest findRecentRegRequestByEmailAndProjectId(
     String email, Integer projectId) {
   return userInvitationDAO.findRecentRegRequestByEmailAndProjectId(email, projectId);
 }
 @Override
 public RegistrationRequest findRecentRegRequestByEmail(String email) {
   return userInvitationDAO.findRecentRegRequestByEmail(email);
 }
 @Override
 public RegistrationRequestResponseDTO getRequestByToken(String token) throws Exception {
   return userInvitationDAO.findRequestByToken(token);
 }
 @Override
 public boolean approvePendingRequest(int id) throws Exception {
   return userInvitationDAO.approvePendingRequest(id);
 }
 @Override
 public boolean registrationRequest(UserInvitationRequestDTO request) throws Exception {
   return userInvitationDAO.saveRegistrationRequest(request);
 }