Impossible to programmatically enable JMX monitoring. Checking in workaround with constant port numbers