refactoring examples to use updated PluginUtils