.getClass());
EnhancedAnnotatedType<Extension> enchancedAnnotatedType = getEnhancedAnnotatedType(classTransformer, extension, beanDeployment);
if (enchancedAnnotatedType != null) {
ExtensionBean bean = new ExtensionBean(beanDeployment.getBeanManager(), enchancedAnnotatedType, extension);
Set<ObserverInitializationContext<?, ?>> observerMethodInitializers = new HashSet<ObserverInitializationContext<?, ?>>();
createObserverMethods(bean, beanDeployment.getBeanManager(), enchancedAnnotatedType, observerMethodInitializers);
beanDeployment.getBeanManager().addBean(bean);
beanDeployment.getBeanDeployer().addExtension(bean);
for (ObserverInitializationContext<?, ?> observerMethodInitializer : observerMethodInitializers) {