} catch (ClassNotFoundException e) {
throw new DeploymentUnitProcessingException("Failed to load managed bean class: " + beanClassName);
}
// Get the managed bean name from the annotation
final ManagedBean managedBeanAnnotation = beanClass.getAnnotation(ManagedBean.class);
final String beanName = managedBeanAnnotation.value().isEmpty() ? beanClassName : managedBeanAnnotation.value();
final ManagedBeanConfiguration managedBeanConfiguration = new ManagedBeanConfiguration(beanName, beanClass);
processLifecycleMethods(managedBeanConfiguration, beanClass, index);
final Map<DotName, List<AnnotationTarget>> classAnnotations = classInfo.annotations();