public function update($stateId, InputStruct $input)
{
$objectState = $this->objectStateMapper->createObjectStateFromInputStruct($input);
$objectState->id = (int) $stateId;
$this->objectStateGateway->updateObjectState($objectState);
return $this->load($objectState->id);
}