Move JMX agent install to resources method