public Template(TemplateContext ctx, String text) { if (ctx == null) { throw new ArgumentNullException("\"ctx\" cannot be null."); } Context = ctx; TemplateContent = text; }