Updated Adapter to be abled to inject localconfig