final CacheDefaults cacheDefaultsAnnotation = method.getDeclaringClass().getAnnotation(CacheDefaults.class);
if (method.isAnnotationPresent(CacheResult.class)) {
final CacheResult cacheResultAnnotation = method.getAnnotation(CacheResult.class);
cacheKeyGenerator = getCacheKeyGenerator(beanManager, cacheResultAnnotation.cacheKeyGenerator(), cacheDefaultsAnnotation);
cacheName = getCacheName(method, cacheResultAnnotation.cacheName(), cacheDefaultsAnnotation, true);
aggregatedParameterMetaData = getAggregatedParameterMetaData(method, false);
cacheAnnotation = cacheResultAnnotation;
} else if (method.isAnnotationPresent(CacheRemoveEntry.class)) {
final CacheRemoveEntry cacheRemoveEntryAnnotation = method.getAnnotation(CacheRemoveEntry.class);