Check bean type