Added new injector constructor for RestComponent