// Checks if the size of descriptions is the same as eventClassNames.
assertTrue(descriptions.length == eventClassNames.length,
"The length of descriptions and event class names must be equal.");
EntityManager entityManager = entityManagerFactory.createEntityManager();
Query query = entityManager.createQuery("SELECT e FROM OperationLogger "
+ "e WHERE e.className = :className AND e.callbackEvent= :event AND e.operationType = :operationType");
query.setParameter("className", className);
query.setParameter("event", event);
query.setParameter("operationType", operationType);
List callbackList = query.getResultList();