Catch Exception instead of ClassNotFoundException because SolrResourceLoader throws SolrException on class not found