Use application instance to register service provider.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>