instancecheck override for Service class.