public function loadObjectStateGroups($offset = 0, $limit = -1) { $spiObjectStateGroups = $this->objectStateHandler->loadAllGroups($offset, $limit); $objectStateGroups = array(); foreach ($spiObjectStateGroups as $spiObjectStateGroup) { $objectStateGroups[] = $this->buildDomainObjectStateGroupObject($spiObjectStateGroup); } return $objectStateGroups; }