public String parse(String controlTemplate,Context controlContext) throws Exception {
  this.controlContext=controlContext;
  fillContextDefaults(this.controlContext);
  fillContextProperties(this.controlContext);
  Template template=getTemplate(controlTemplate,inputEncoding);
  StringWriter sw=new StringWriter();
  template.merge(controlContext,sw);
  return sw.toString();
}

public String parse ( String controlTemplate , Context controlContext ) throws Exception { this . controlContext = controlContext ; fillContextDefaults ( this . controlContext ) ; fillContextProperties ( this . controlContext ) ; Template template = getTemplate ( controlTemplate , inputEncoding ) ; StringWriter sw = new StringWriter ( ) ; template . merge ( controlContext , sw ) ; return sw . toString ( ) ; }
parse the control template and merge it with the control context . this is the starting point in texen .
