public function getProperty($object, $propertyPath, $required = true)
    {
        if (!$required) {
            try {
                return $this->accessor->getValue($object, $propertyPath);
            } catch(NoSuchIndexException $e) {
                return null;
            }
        }
        return $this->accessor->getValue($object, $propertyPath);
    }