Improve JMXAgent.java initialization.