Added support for optional_args for get_resource_extension in RR