case PType.TYPECODE_REFERENCE:
if (field instanceof PropagatedField) {
Field f = ((PropagatedField) field).getOriginFields()[0];
if (f instanceof PNameField) {
PNameField pnf = (PNameField) f;
if (pnf.isClassPName()) {
if (pnf.isInGenClass()) {
//identifier of the genclass
className = pnf.getGenClassRef().getGenClassId();
} else {
//identifier of a class
className = pnf.getMetaObjectClass().getFQName();
}
} else {
Reference ref = pnf.getReference();
if (ref instanceof ClassRef) {
//reference to a class
className = ((ClassRef) ref).getMOClass().getFQName();
} else if (ref instanceof GenClassRef) {
//reference to a genclass