we still need to check whether the declaring bean is specialized or not