Date creationDate,
Boolean completed,
Account tweetOwner,
Question question,
final UserAccount userAccount){
final TweetPoll tweetPoll = new TweetPoll();
tweetPoll.setCloseNotification(closeNotification);
tweetPoll.setResultNotification(resultNotification);
tweetPoll.setAllowLiveResults(allowLiveResults);
tweetPoll.setCompleted(completed);
tweetPoll.setPublishTweetPoll(publishTweetPoll);
tweetPoll.setQuestion(question);
tweetPoll.setScheduleDate(scheduleDate);
tweetPoll.setScheduleTweetPoll(scheduleTweetPoll);
// The create date always have to be the date of creation
tweetPoll.setCreateDate(creationDate);
tweetPoll.setFavourites(Boolean.TRUE);
tweetPoll.setTweetOwner(tweetOwner);
// The update date is the date when the tweetpoll has been updated, included the
// publication date
tweetPoll.setUpdatedDate(creationDate);
tweetPoll.setEditorOwner(userAccount);
tweetPoll.setRelevance(1L);
getTweetPoll().saveOrUpdate(tweetPoll);
return tweetPoll;
}