resolveComponent as service