JC-1591 Formatting and refactoring according last code review

Remove deprecated pluginActivating method, Write test for new pluginActivate method,
Refactor PluginActivatingDto creation in pluginActivate