changes how plugin is initialiyed based on: https://github.com/collectd/collectd/blob/master/bindings/java/org/collectd/java/GenericJMX.java