if (optvp.pollId != null) {
if (! "option".equals(retVal)) {
result.resultingView = new PollViewParameters(viewId, optvp.pollId);
} else {
m_log.debug("New option for poll: " + optvp.pollId);
<BUG>result.resultingView = new OptionViewParameters(this.VIEW_ID, optvp.id , optvp.pollId);
}</BUG>
} else {
Option option = pollListManager.getOptionById(Long.valueOf(optvp.id));
result.resultingView = new PollViewParameters(viewId, option.getPollId().toString());

if (optvp.pollId != null) {
if (! "option".equals(retVal)) {
result.resultingView = new PollViewParameters(viewId, optvp.pollId);
} else {
m_log.debug("New option for poll: " + optvp.pollId);
result.resultingView = new OptionViewParameters(VIEW_ID, optvp.id , optvp.pollId);
}
} else {
Option option = pollListManager.getOptionById(Long.valueOf(optvp.id));
result.resultingView = new PollViewParameters(viewId, option.getPollId().toString());
