code: def validate_spec(self, key, value):
          
          if self.spec and self.spec != value:
              raise OAISetSpecUpdateError("Updating spec is not allowed.")
          return value
docs: Forbit updates of set identifier.