// try specific name first, falling back on simple name
Label dispatch = new Label();
cw.visitField(ACC_STATIC | ACC_PUBLIC | ACC_VOLATILE, fieldName, ci(DynamicMethod.class), null, null).visitEnd();
mv.getstatic(name, fieldName, ci(DynamicMethod.class));
mv.dup();
mv.ifnonnull(dispatch);
mv.pop();
mv.getstatic(name, simpleName, ci(DynamicMethod.class));
mv.dup();
mv.ifnonnull(dispatch);
mv.pop();