java moments - improve discovery error handling.

Change-Id: I7b7624cb68eef008a97d3d512460eb90c31aa0b0
7 files changed