```
if (AndorsTrailApplication.DEVELOPMENT_VALIDATEDATA) {
   if (!replace.isActive) throw new RuntimeException("[enter explanation here]");
   if (replace.isApplied) throw new RuntimeException("[enter explanation here]");
}
```