BeanUtils.copyProperties(poll, old, new String[]{"id", "question", "options"});
if (poll.getQuestion() != null)
for (int index = 0; index < poll.getQuestion().getData().size(); index++)
old.getQuestion().getData().get(index).setTranslation(poll.getQuestion().getData().get(index).getTranslation());
else old.setQuestion(null);
if (CollectionUtils.isEmpty(poll.getOptions())) old.clearOptions();
else {
for (PollOption option : poll.getOptions()) {
if (option.getId() != null) {
for (PollOption oldPollOption : old.getOptions()) {
if (oldPollOption.getId().equals(option.getId())) {