ObjectAndPersistInfo objectAndPersistInfo;
try {
objectAndPersistInfo = new ObjectAndPersistInfo(object, false,
objectClassInfo);
} catch (ClassInfoException exception) {
throw new ObjectIOException(exception);
}
if (stateMap.put(objectAndPersistInfo, objectAndPersistInfo) != null) {
throw new ObjectIOException(
"object persistent state already exists");
}
return objectAndPersistInfo;
}