Fixing interface lookup and passing the container to register method of service provider interface.