protected Node translateEntityReference(String ref) {
//System.out.println("translateEntityReference");
String val = dexter.getEntity(ref);
if(val == null)
{
throw new DexterException("unrecognized entity reference used: " + ref);
}
val = val.trim();
Map<String,String> ent =
(Map<String,String>)currentDocument.getUserData("entity-map");
if(ent == null)