fix getting spring bean