Add support for class not found beans.