// set config - user may have created Template object directly
List psnL = iContextPSM.listNames();
for( Iterator psnT = psnL.iterator(); psnT.hasNext(); ) {
String psn = (String) psnT.next();
PropertySet tmps = tm.getPropertySet(psn);
tmps.inheritFrom( iContextPSM.get( psn ) );
tm.setPropertySet( psn, tmps );
}
// HACK: as we need some property mods before checkUpToDate
GenericPreparer.handleCodeWriterName( tm );