dtstate.traceTagBegin("attribute", "name",aname.stringValue(),"type",getType(e,aname));
int type = e.getEntry(aname).type.getId();
if(type == IRObject.iEntity) {
if(value.type().getId() == IRObject.iNull){
dtstate.traceInfo("value","type","null","value","null",null);
}else{
dtstate.traceTagBegin("entity",
"name", ((REntity)value).getName().stringValue(),
"id", printIds ? ((REntity)value).getID()+"" : "");