Expose profile-refresh via JMX (and the Java API too)