// don't want to associate the state manager with the parameter value is
// that this would be a very surprising (and meaningful) side effect.
StateManager sm = apiAdapter.newStateManager(getObjectManager(), acmd);
sm.initialiseForHollow(null, null, value.getClass());
sm.copyFieldsFromObject((PersistenceCapable) value, acmd.getPKMemberPositions());
jdoPrimaryKey = sm.provideField(acmd.getPKMemberPositions()[0]);
}
if (jdoPrimaryKey == null) {
throw new FatalNucleusUserException(
query.getSingleStringQuery() + ": Parameter value " + value
+ " does not have an id.");