public function getProperty($strPropertyName)
    {
        if ($this->getItem()) {
            $varValue = $this->getItem()->get($strPropertyName);
            // Test if it is an attribute, if so, let it transform the data for the widget.
            $objAttribute = $this->getItem()->getAttribute($strPropertyName);
            if ($objAttribute) {
                $varValue = $objAttribute->valueToWidget($varValue);
            }

            return $varValue;
        }
        return null;
    }
public function getProperty($strPropertyName)
    {
        if ($this->getItem()) {
            $varValue = $this->getItem()->get($strPropertyName);
            // Test if it is an attribute, if so, let it transform the data for the widget.
            $objAttribute = $this->getItem()->getAttribute($strPropertyName);
            if ($objAttribute) {
                $varValue = $objAttribute->valueToWidget($varValue);
            }

            return $varValue;
        }
        return null;
    }
{@inheritDoc}