ResultException ex = new ResultException();
ex.addError("Unresolved references in AttributeDefinition: " + d.getName());
ex.setLocationInfo(d.getFile(), d.getLineNumber());
for(DmcValueException dve : e.getExceptions()){
ex.moreMessages(dve.getMessage());
}
throw(ex);
}
// TODO move towards generic object validation mechanisms - this check should be a rule