public Type BuildPluginConfigurationType(ConnectionData connectionData) { if (PluginRepository == null) { LogTo.Warn("PluginRepository not set on Configuration. Impossible to retrieve correct Configuration type for plugin."); } var type = PluginRepository?.FindConfigurationType(connectionData.BuildPluginType); return(type ?? typeof(object)); }