Refactoring JMXCollector