final ObjectAndPersistInfo objectAndPersistInfo;
try {
objectAndPersistInfo = new ObjectAndPersistInfo(object,
proxyInstance, objectClassInfo);
} catch (ClassInfoException exception) {
throw new ObjectIOException(exception);
}
if (persisted) {
objectAndPersistInfoMap.put(objectAndPersistInfo,
objectAndPersistInfo);
ProxyCallBack proxyCallBack;
try {
proxyCallBack = new ProxyCallBack(this);
ProxyManager2.setProxyCallBack(objectAndPersistInfo,
proxyCallBack, isExclusiveAccessSession());
} catch (ProxyException exception) {
throw new ObjectIOException(exception);
}
}
return objectAndPersistInfo;
}