Add imports to templates for MWS files