}
protected void processImpl( Template pTemplate ) {
Template template = pTemplate;
PropertySet tmps = template.getMergedPropertySet();
boolean successful = false;
PrintStream sysOut = null;
PrintStream sysErr = null;
RecordingUserMessageHandler rumh = new RecordingUserMessageHandler();
try {
String cw = tmps.get( Property.main_CodeWriter );
String cwo = makeCodeWriterOptions( tmps, template );
String[] args = ArgUtil.splitQuoted( cwo );
String cwp = getCodeWriterPath( tmps );
Properties jythonProps = new Properties();
jythonProps.put( "python.home", tmps.get("jython.home") );
PythonInterpreter.initialize( System.getProperties(), jythonProps, args );
PyStringMap dict = new PyStringMap();
PySystemState pysys = new PySystemState();
PythonInterpreter pi = new PythonInterpreter( dict, pysys );