log.debug("action ANSWER--->"+type);
if ("add".equals(type)) {
if ((answer.isEmpty()) || (answer == null)) {
throw new EnmeFailOperation("Answer can not valid");
} else {
final QuestionAnswerBean answerBean = new QuestionAnswerBean(answer);
if (shortUrl == null || shortUrl.isEmpty()) {
shortUrl = EnMePlaceHolderConfigurer.getProperty("short.default");
}
answerBean.setShortUrlType(ShortUrlProvider.get(shortUrl));
log.debug("new answer bean:{ "+answerBean.toString());
final TweetPollSwitch tweetPollSwitch = getTweetPollService()
.createTweetPollQuestionAnswer(answerBean, tweetPoll, request);
log.debug("new answer bean DOMAIN "+tweetPollSwitch.toString());
//log.debug("action questionAnswer "+questionAnswer);
jsonResponse.put("newAnswer", ConvertDomainBean.convertTweetPollSwitchToBean(tweetPollSwitch, request));