{
// if (jdoStateManager != null)
il.append(InstructionConstants.ALOAD_0);
il.append(factory.createGetField(className, ClassEnhancer.FN_StateManager, BCELClassEnhancer.OT_StateManager));
IFNONNULL ifnonnullSM = new IFNONNULL(null);
il.append(ifnonnullSM);
// jdoDetachedState != null
il.append(InstructionConstants.ALOAD_0);
il.append(factory.createGetField(className, ClassEnhancer.FN_JdoDetachedState, BCELClassEnhancer.OT_ObjectArray));
IFNONNULL ifnonnullObjectId = new IFNONNULL(null);
il.append(ifnonnullObjectId);
il.append(InstructionConstants.ICONST_0);
il.append(InstructionConstants.IRETURN);
ifnonnullObjectId.setTarget(il.append(InstructionConstants.ICONST_1));
il.append(InstructionConstants.IRETURN);
// target
InstructionHandle ifnonnullTarget = il.append(InstructionConstants.ICONST_0);
ifnonnullSM.setTarget(ifnonnullTarget);