private AccessRate checkExistTweetPollPreviousRecord(final TweetPoll tpoll,
final String ipAddress, final Boolean option) throws EnMeExpcetion {
// Search record by tweetPpll in access Rate domain.
List<AccessRate> rateList = this.getAccessRateItem(ipAddress,
tpoll.getTweetPollId(), TypeSearchResult.TWEETPOLL);
final AccessRate accessRate;
if (rateList.size() > 1) {
throw new EnMeExpcetion(
"Access rate list found coudn't be greater than one ");
} else if (rateList.size() == 1) {
// Get first element from access rate list
accessRate = rateList.get(0);
// Check if the option selected is the same that you have registered
if (accessRate.getRate() == option) {
log.warn("The option was previously selected "
+ accessRate.getRate());
} else {
// We proceed to update the record in the table access Rate.
accessRate.setRate(option);
// Update the value in the fields of TweetPoll
this.setTweetPollSocialOption(option, tpoll);
// Save access rate record.
getFrontEndDao().saveOrUpdate(accessRate);
}