private void invokeCallback(final Object pc, final Class callbackClass)
{
final ObjectManager om = ((JDOPersistenceManager) ((PersistenceCapable) pc).jdoGetPersistenceManager()).getObjectManager();
final ClassLoaderResolver clr = om.getClassLoaderResolver();
JPAMetaDataManager metaDataMgr = (JPAMetaDataManager)om.getMetaDataManager();
AbstractClassMetaData acmd = metaDataMgr.getMetaDataForClass(pc.getClass(), clr);
try
{
if (!acmd.isExcludeDefaultListeners())
{
// Global listeners for all classes
List<EventListenerMetaData> listenerMetaData = metaDataMgr.getListeners();
if (listenerMetaData != null && listenerMetaData.size() > 0)
{
// Files have listeners so go through them in the same order
Iterator<EventListenerMetaData> listenerIter = listenerMetaData.iterator();
while (listenerIter.hasNext())