public void setDuration(Duration duration) {
   this.duration = duration.getValue();
 }
 public Duration getDuration() {
   return Duration.parse(this.duration);
 }