Update policy example source code to keep it in sync with the core