code: public static boolean isPassivationCapableBean(Bean<?> bean) {
          if (bean instanceof RIBean<?>) {
              return ((RIBean<?>) bean).isPassivationCapableBean();
          } else {
              return bean instanceof PassivationCapable;
          }
      }
docs: Tests if a bean is capable of having its state temporarily stored to secondary storage
  
  @param bean The bean to inspect
  @return True if the bean is passivation capable