146147148149150151152153154155156
Class rtClass = RelationType.class; Field f = rtClass.getField(type); Object obj = f.get(null); if (obj instanceof RelationType) { RelationType rt = (RelationType) obj; typeName = rt.getRelationTypeName(); } return typeName; }