Throwing an Exception if Bean not implelment BeanAttributes