Template: Changed Template,before event to be Template,beforeProcessing-templateName and Teplate,beforeOutput-templateName