<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_instance(name, library, *args):
 """ Creates an instance of an object type specified by its name and library where it is defined. :param name: an object type (factory function) to create. :param library: a library (module) where object type is defined. :param args: arguments for the object constructor. :return: the created object instance. """

        obj_type = TypeReflector.get_type(name, library)
        if obj_type == None:
            raise NotFoundException(
                None, "TYPE_NOT_FOUND", "Type " + name + "," + library + " was not found"
            ).with_details("type", name).with_details("library", library)
        
        return obj_type(*args)