code: def _AddAttributeContainer(self, container_type, attribute_container):
      
      container_list = self._GetSerializedAttributeContainerList(container_type)
  
      identifier = identifiers.SQLTableIdentifier(
          container_type, container_list.next_sequence_number + 1)
      attribute_container.SetIdentifier(identifier)
  
      serialized_data = self._SerializeAttributeContainer(attribute_container)
  
      container_list.PushAttributeContainer(serialized_data)
  
      if container_list.data_size > self._maximum_buffer_size:
        self._WriteSerializedAttributeContainerList(container_type)
docs: Adds an attribute container.
  
      Args:
        container_type (str): attribute container type.
        attribute_container (AttributeContainer): attribute container.
  
      Raises:
        IOError: if the attribute container cannot be serialized.
        OSError: if the attribute container cannot be serialized.