Adding catching of BeanCreationException