if ((fieldDescriptorInfo.getAccesFlags() & FieldDescriptorInfo.ACC_STATIC) >>> 3 == 1) {
//the field is a Static Field
StaticField fieldRef = new StaticField();
fieldDescriptorInfo.setFieldRef(fieldRef);
StaticFieldRef sFieldRef = new StaticFieldRefRead().load(in);
((StaticField) fieldRef).setStaticField(sFieldRef);
} else {
//the fied is an instance field
ClassRef classref = new ClassRefRead().load(in);