protected DefaultOutputModelFactory([NotNull] CodeGenerator gen) { this.gen = gen; this.g = gen.g; if (gen.GetTarget() == null) { throw new NotSupportedException("Cannot build an output model without a target."); } }