if (policies[i].policy_type() == RETRY_POLICY_ID.value) {
RetryPolicy policy = (RetryPolicy) policies[i];
attributes.mode = policy.retry_mode();
attributes.interval = policy.retry_interval();
attributes.max = policy.retry_max();
attributes.remote = policy.retry_remote();
return attributes;
}
}