   public Parcelable restore(T target, Parcelable p) {
     Bundle state = (Bundle) p;
     {{#fields}}
-    target.{{name}} = H.get{{primitive}}{{method}}(state, \"{{name}}\");
+    target.{{name}} = H.get{{method}}(state, \"{{name}}\");
     {{/fields}}
     return super.restore(target, H.getParent(state));
   }

  public void save(T target, Bundle state) {
    super.save(target, state);
    {{#fields}}
    H.put{{primitive}}{{method}}(state, \"{{name}}\", target.{{name}});
    {{/fields}}
  }
  {{/view?}}

  public Parcelable save(T target, Parcelable p) {
    Bundle state = H.putParent(super.save(target, p));
    {{#fields}}
    H.put{{method}}(state, \"{{name}}\", target.{{name}});
    {{/fields}}
    return state;
  }
