When diagram is converted to template the objectclasses are generated. Template objects can be legally connected with connection according to the template. Second generation non template objects can be legally connected with connection according to the template. Saving and loading and saving is idempotent. model tests refactored