Added invoke method for resource handlers