((InternalStaticFieldRef) staticFieldRef).setPadding(buf);
((InternalStaticFieldRef) staticFieldRef).setOffset(offset);
} else {
//case of an externalStaticFieldRef
staticFieldRef = new ExternalStaticFieldRef();
((ExternalStaticFieldRef) staticFieldRef).setPackageToken(buf);
((ExternalStaticFieldRef) staticFieldRef).setClassToken(in.readByte());
((ExternalStaticFieldRef) staticFieldRef).setToken(in.readByte());