move mapping of form attributes to model attributes from pattern to builder to make
pattern independent of form