Determine plugin type (instance/controller/function) and also pass in as a a pram in addPlugin & registerPlugin trigger.