def METHOD_NAME(self, loader_class, extracted_dump_path, object_filter, dump_meta):
    try:
        loader = loader_class(object_filter, self.stdout, self.stderr)
        return loader.load_from_path(extracted_dump_path, dump_meta, force=self.force, dry_run=self.dry_run)
    except DataExistsException as e:
        raise CommandError('Some data already exists. Use --force to load anyway: {}'.format(str(e)))
    except Exception as e:
        if not isinstance(e, CommandError):
            e.args = ("Problem loading data '%s': %s" % (extracted_dump_path, e),)
        raise