Sample code for article "Using policies to handle exceptions while calling external services"