/** * Converts the soap model instance into a normal model instance. * * @param soapModel the soap model instance to convert * @return the normal model instance */ public static PollsChoice toModel(PollsChoiceSoap soapModel) { if (soapModel == null) { return null; } PollsChoice model = new PollsChoiceImpl(); model.setUuid(soapModel.getUuid()); model.setPollsChoiceId(soapModel.getPollsChoiceId()); model.setPollsQuestionId(soapModel.getPollsQuestionId()); model.setName(soapModel.getName()); model.setDescription(soapModel.getDescription()); return model; }