public static void destroyBean(
     Contextual bean, ContextualInstanceInfo<?> contextualInstanceInfo) {
   bean.destroy(
       contextualInstanceInfo.getContextualInstance(),
       contextualInstanceInfo.getCreationalContext());
 }