private boolean hasAnotherCandidature(PositionEntity positionSelect, CandidateEntity candLog) {
   List<CandidatureEntity> positionsArray =
       candidatureDAO.findCandidatureByPosition(positionSelect);
   List<CandidatureEntity> candidateArray = candidatureDAO.findCandidatureByCandidate(candLog);
   for (CandidatureEntity p : positionsArray) {
     for (CandidatureEntity c : candidateArray) {
       if (p.getId() == c.getId()) {
         return true;
       }
     }
     break;
   }
   return false;
 }
 @Override
 public List<CandidatureEntity> findCandidatureByCandidate(CandidateEntity candidate) {
   log.info("Finding candidature by last candidate: " + candidate);
   return candidatureDAO.findCandidatureByCandidate(candidate);
 }