Allow to specify bean class as a string to prevent autoloading