@classmethod
def CreateAttributeContainer(cls, container_type):
    """Creates an instance of a specific attribute container type.

    Args:
      container_type (str): container type.

    Returns:
      AttributeContainer: an instance of attribute container.

    Raises:
      ValueError: if the container type is not supported.
    """
    container_class = cls._attribute_container_classes.get(container_type, None
        )
    if not container_class:
        raise ValueError('Unsupported container type: {0:s}'.format(
            container_type))
    return container_class()
