def factory(self, classname, *args, **kwargs):
klass = self.load_class(classname)<EOL>return self.get_factory_by_class(klass)(*args, **kwargs)<EOL>
Creates an instance of class looking for it in each module registered. You can
add needed params to instance the class.

:param classname: Class name you want to create an instance.
:type classname: str
:return: An instance of classname
:rtype: object