public Object copyTo(Object target, CopyBuilder copyBuilder) { final BaseMqttMessage copy = ((target == null) ? ((BaseMqttMessage) createCopy()) : ((BaseMqttMessage) target)); { String sourceValue; sourceValue = this.getValue(); String copyValue = ((String) copyBuilder.copy(sourceValue)); copy.setValue(copyValue); } { String sourceTopic; sourceTopic = this.getTopic(); String copyTopic = ((String) copyBuilder.copy(sourceTopic)); copy.setTopic(copyTopic); } { Integer sourceQos; sourceQos = this.getQos(); Integer copyQos = ((Integer) copyBuilder.copy(sourceQos)); copy.setQos(copyQos); } { Boolean sourceRetained; sourceRetained = this.isRetained(); Boolean copyRetained = ((Boolean) copyBuilder.copy(sourceRetained)); copy.setRetained(copyRetained); } return copy; }