// constructor and then persist that.
value = JDOImplHelper.getInstance().newInstance(
ammd.getType(), (javax.jdo.spi.StateManager) getStateManager());
}
ObjectManager objMgr = getObjectManager();
StateManager embeddedStateMgr = objMgr.findStateManager(value);
if (embeddedStateMgr == null) {
embeddedStateMgr = StateManagerFactory.newStateManagerForEmbedded(objMgr, value, false);
embeddedStateMgr.addEmbeddedOwner(getStateManager(), fieldNumber);
embeddedStateMgr.setPcObjectType(StateManager.EMBEDDED_PC);
}