Added an example for plugin-registration from code