}
final List<Class<?>> lifecycleClasses = new ArrayList<Class<?>>();
lifecycleClasses.add(clazz);
final EntityListeners entityLisAnn = (EntityListeners) getAnnotation(EntityListeners.class);
if (entityLisAnn != null && entityLisAnn.value() != null && entityLisAnn.value().length != 0) {
Collections.addAll(lifecycleClasses, entityLisAnn.value());
}
for (final Class<?> cls : lifecycleClasses) {
for (final Method m : ReflectionUtils.getDeclaredAndInheritedMethods(cls)) {
for (final Class<? extends Annotation> c : LIFECYCLE_ANNOTATIONS) {