Implementation for JMX plugin
Added params for determining package name
Refactoring: use params for getting package name