private void validateBean(Bean<?> bean) {
   if (bean.getBeanClass() == null) {
     throw BeanLogger.LOG.beanMethodReturnsNull("getBeanClass", bean);
   }
   if (bean.getInjectionPoints() == null) {
     throw BeanLogger.LOG.beanMethodReturnsNull("getInjectionPoints", bean);
   }
   if (bean instanceof PassivationCapable) {
     PassivationCapable passivationCapable = (PassivationCapable) bean;
     if (passivationCapable.getId() == null) {
       throw BeanLogger.LOG.passivationCapableBeanHasNullId(bean);
     }
   }
   if (bean instanceof Interceptor<?>) {
     validateInterceptor((Interceptor<?>) bean);
   } else if (bean instanceof Decorator<?>) {
     validateDecorator((Decorator<?>) bean);
   }
 }