void () { final Type componentType = Type.getType(JComponent.class); final Method method = new Method(GET_ROOT_COMPONENT_METHOD_NAME, componentType, new Type[0]); GeneratorAdapter generator = new GeneratorAdapter(Opcodes.ACC_PUBLIC | Opcodes.ACC_SYNTHETIC, method, null, null, cv); final LwComponent topComponent = (LwComponent)myRootContainer.getComponent(0); final String binding = topComponent.getBinding(); generator.loadThis(); generator.getField(typeFromClassName(myClassName), binding, Type.getType(myFieldDescMap.get(binding))); generator.returnValue(); generator.endMethod(); }