I tried doing that like below
bind(configClass).toProvider(Provider>).in(Singleton.class);
But I\'m getting this erro