public function removeWidgetMap(WidgetMap $widgetMap)
    {
        $widgetMaps = $this->widgetMaps;

        //parse the widgets maps
        foreach ($widgetMaps as $index => $wm) {
            if ($wm->getWidgetId() === $widgetMap->getWidgetId()) {
                unset($this->widgetMaps[$index]);
                //entity found, there is no need to continue
                break;
            }
        }
    }