public static Application WithPluginsFrom(ComposablePartCatalog catalog) { try { return new Application(catalog); } catch(ReflectionTypeLoadException rtle) { GetLogger().ErrorFormat("Could not start application, exiting. Error: {0}", rtle.LoaderExceptions); throw; } catch(Exception ex) { GetLogger().ErrorFormat("Could not start application, exiting. Error: {0}", ex); throw; } }