public static IisApplicationConfiguration FromMwaApplication(ILogSink logger, string siteName, Application app, IisApplicationConfiguration template = null)
        {
            var config = new IisApplicationConfiguration();

            config.SiteName            = siteName;
            config.ApplicationPath     = app.Path;
            config.ApplicationPoolName = app.ApplicationPoolName;
            config.SetPropertiesFromMwa(logger, app.VirtualDirectories["/"], template);
            return(config);
        }
 public static void SetMwaApplication(ILogSink logger, IisApplicationConfiguration config, Application app)
 {
     app.Path = config.ApplicationPath;
     app.ApplicationPoolName = config.ApplicationPoolName;
     config.SetPropertiesOnMwa(logger, app.VirtualDirectories["/"]);
 }