code: def AddNewSpecification(self, identifier):
      
      if identifier in self._format_specifications:
        raise KeyError(
            'Format specification {0:s} is already defined in store.'.format(
                identifier))
  
      self._format_specifications[identifier] = FormatSpecification(identifier)
  
      return self._format_specifications[identifier]
docs: Adds a new format specification.
  
      Args:
        identifier (str): format identifier, which should be unique for the store.
  
      Returns:
        FormatSpecification: format specification.
  
      Raises:
        KeyError: if the store already contains a specification with
                  the same identifier.