Update custom plugin example for new plugin architecture