code: func NewFinalizer() *Finalizer {
  	var (
  		f   = &Finalizer{seen: make(map[*design.AttributeDefinition]map[*design.AttributeDefinition]*bytes.Buffer)}
  		err error
  	)
  	fm := template.FuncMap{
  		"tabs":         Tabs,
  		"goify":        Goify,
  		"gotyperef":    GoTypeRef,
  		"add":          Add,
  		"finalizeCode": f.Code,
  	}
  	f.assignmentT, err = template.New("assignment").Funcs(fm).Parse(assignmentTmpl)
  	if err != nil {
  		panic(err)
  	}
  	f.arrayAssignmentT, err = template.New("arrAssignment").Funcs(fm).Parse(arrayAssignmentTmpl)
  	if err != nil {
  		panic(err)
  	}
  	return f
  }
docs: // NewFinalizer instantiates a finalize code generator.