code: public static boolean isInvalid(Object bean) {
  		if (bean == null) {
  			return false;
  		}
  		return isPrimitiveOrWrapper(bean.getClass()) 
  				|| INVALID_TYPES.contains(bean.getClass())
  				|| isInstanceOfInvalid(bean.getClass());
  	}
docs: Check if the bean type can be wrapped or not.
  
  @param bean
  the bean instance
  @return false if null or valid type, true if primitive type or string