protected override void OnTransform()
 {
     m.MetaDomainModel metaModel = Model as m.MetaDomainModel;
     if (metaModel == null) throw new InvalidOperationException("model must be of type : " + typeof(m.MetaDomainModel).FullName);
     Bax.MetaDomainModel.Factory.Templates.NVelocityTemplate
         template = new Bax.MetaDomainModel.Factory.Templates.NVelocityTemplate(_templateName);
     string artifact = template.Merge(metaModel, ProductionContext.ParametersHashtable);
     GeneratedArtifact ga = new GeneratedArtifact(this.TransformationInfo);
     ga.TargetLanguage = this.TargetLanguage;
     ga.CreateArtifactDataItem(null, null, artifact);
     TransformationResult.GeneratedArtifacts.Add(ga);
 }
 protected override void OnTransform()
 {
     m.DataLayer dataLayer = Model as m.DataLayer;
     if (dataLayer == null) throw new InvalidOperationException("model must be of type : " + typeof(m.DataLayer).FullName);
     Bax.DataLayer.Factory.Templates.NVelocityTemplate
         template = new Bax.DataLayer.Factory.Templates.NVelocityTemplate("DataModelLibrary");
     string artifact = template.Merge(dataLayer, ProductionContext.ParametersHashtable);
     GeneratedArtifact generatedArtifact = new GeneratedArtifact(this.TransformationInfo);
     generatedArtifact.TargetLanguage = this.TargetLanguage;
     generatedArtifact.CreateArtifactDataItem(null, null, artifact);
     TransformationResult.GeneratedArtifacts.Add(generatedArtifact);
 }