public Date tryToFindValidVoteDate ( final BallotContainer ballotContainer , final List < VoteDataDto > voteDataList ) throws ParseException { Date ballotDate ; final Date sameDate = checkSameDate ( voteDataList ) ; if ( sameDate != null ) { ballotDate = sameDate ; } else { ballotDate = bestGuessVoteDate ( ballotContainer ) ; } return ballotDate ; }
Try to find valid vote date .