Plugins get invoked by an event driven system.
These events are fired by the Core.
More detailed information about the event system can be found in chapter events.
By using the above mentioned principle, the plugin is decoupled from the actual endpoint implementation.
Nevertheless you have access to all information transferred by JTL-Wawi and the endpoint.