def _add_new_container(annotation, extractors, container_data, template,
                           containers, container_contents):
        """
        Create a new container from the provided container information.
        """
        meta = annotation.metadata
        cls = ContainerExtractor
        if meta.get('repeated'):
            cls = RepeatedContainerExtractor
            if meta.get('field'):
                cls = RepeatedFieldsExtractor
        extractors.append(
            cls(container_data, template, annotation=annotation,
                containers=containers, container_contents=container_contents))

        Create a new container from the provided container information.
        
slybot/slybot/plugins/scrapely_annotations/extraction/container_extractors.py