Keeping JMX and REST metrics APIs in sync