if (sa == null) {
sp.speedoSetReferenceState(sp.speedoCreateState());
}
return sa;
}
POManagerItf pm = pmf.lookup();
if (pm == null) {
throw personality.newUserRuntimeException("When a persistent object is used (read), a PersistenceManager/EntityManager is needed");
}
TransactionItf t = pm.getSpeedoTransaction();
try {
sendEvent(PRE_DIRTY, sp, null);
StateItf sa = (StateItf) tpm.writeIntention(t, sp,
isFieldLockingLevel ? thinLock : null);
sa.loadFields(pm, fields);