If an JMX attribute or operation returns an object of type InputStreamContent, a download will be initiated. See the (new) sample JMX MBean JMiniXStuff.