if (listener.forClass(pc.getClass()) && listener.getListener() instanceof StoreLifecycleListener)
{
ObjectManager om = ObjectManagerHelper.getObjectManager((PersistenceCapable)pc);
String[] fieldNames = null;
// PRE_STORE will return the fields being stored (JPOX extension)
StateManager sm = om.findStateManager(pc);
fieldNames = sm.getDirtyFieldNames();
if (fieldNames == null)
{
// Must be persisting so just return all loaded fields
fieldNames = sm.getLoadedFieldNames();