public static void StartExtension() { lock (locker) { if (factory == null) { lock (locker) { if (factory == null) { if (Configuration.ObjectExtenderConfig.IsTypeSpecific) { factory = AttributeFactory.Create(new TypeSpecificAttributeMap(() => new GlobalAttributeMap())); } else { factory = AttributeFactory.CreateGlobal(); } } } } } }