public static void SetConfiguration <T>(DocumentConfig <T> config) { var type = typeof(T); configuration[type] = config; }