code: public static TorchFactory with(DatabaseEngine engine) {
          Validate.isNull(factoryInstance, "Call TorchService#forceUnload if you want to reload TorchFactory!");
  
          factoryInstance = new TorchFactoryImpl(engine);
  
          return factoryInstance;
      }
docs: Loads the TorchFactory with passed context. In order to get all async callbacks delivered on UI Thread, you have
  to call this on UI Thread
  
  @param engine A database engine to be used in the factory.
  
  @return EntityRegistrar for {@link org.brightify.torch.annotation.Entity} registration