code.aload().setThis();
code.invokespecial().setMethod(bc.getSuperclassType(), "clone",
Object.class, null);
code.checkcast().setType(Proxy.class);
int other = code.getNextLocalsIndex();
code.astore().setLocal(other);
code.aload().setLocal(other);
code.constant().setNull();
code.constant().setValue(0);
code.invokeinterface().setMethod(Proxy.class, "setOwner", void.class,
new Class[] { OpenJPAStateManager.class, int.class });