protected function setAttributeValue($object, $attribute, $value, $format = null, array $context = array()) { $object->{$attribute} = $value; }