private static EntityRes GetLoader()
 {
     if (loader == null)
     {
         var sr = new EntityRes();
         Interlocked.CompareExchange(ref loader, sr, null);
     }
     return loader;
 }