Update EdcRestExample.java

Fixed some problems when reading messages without Metrics, not updating the correct rule, etc.