/** * This method is called by PageFactory on all properties to decide how to decorate the property. * * @param Property $property The property that may be decorated. * * @return IProxy */ public function decorate(Property $property) { if (!$this->canDecorate($property)) { return null; } $locator = $this->locatorFactory->createLocator($property); return $locator != null ? $this->doDecorate($property, $locator) : null; }