* @param callbackClass The callback type to call
*/
@SuppressWarnings("unchecked")
private void invokeCallback(final Object pc, final Class callbackClass)
{
final ObjectManager om = ((AbstractPersistenceManager) ((PersistenceCapable) pc).jdoGetPersistenceManager()).getObjectManager();
final ClassLoaderResolver clr = om.getClassLoaderResolver();
AbstractClassMetaData acmd = om.getOMFContext().getMetaDataManager().getMetaDataForClass(pc.getClass(), clr);
try
{
if (!acmd.isExcludeDefaultListeners())
{
// Global listeners for all classes
List<EventListenerMetaData> listenerMetaData = om.getMetaDataManager().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())