@staticmethod<EOL><INDENT>def get_instance_by_type(dst, disk, do_compress, *args, **kwargs):<DEDENT>
disk_type = disk['<STR_LIT:type>']<EOL>cls = HANDLERS.get(disk_type)<EOL>if not cls:<EOL><INDENT>raise utils.LagoUserException(<EOL>'<STR_LIT>'.format(disk_type)<EOL>)<EOL><DEDENT>return cls(dst, disk_type, disk, do_compress, *args, **kwargs)<EOL>
Args:
    dst (str): The path of the new exported disk.
        can contain env variables.
    disk (dict): Disk attributes
        (of the disk that should be exported) as
        found in workdir/current/virt/VM-NAME
    do_compress(bool): If true, apply compression to the exported
        disk.
Returns
    An instance of a subclass of DiskExportManager which
    matches the disk type.