Implementation for JMX plugin + refactoring for determining package name