try {
if (map != null && !map.containsKey(sp.getPName())) {
map.put(sp.getPName(), sp);
tpm.refresh(tx, sp);
StateItf sa = (StateItf) tpm.readIntention(tx, sp, null);
sa.refresh(this, map, fgHints);
}
} catch (PersistenceException e) {
throw new JDOException("Impossible to refresh a persistent instance", e);
}
}