protected function _processOrderStates($sQuery, $sClientFunction)
    {
        $aResponses = array();
        $aResult = $this->_getContainer()->getDatabase()->getAll($sQuery);

        foreach ($aResult as $aRow) {
            $oOrder = $this->_getContainer()->getObjectFactory()->createOxidObject('oxOrder');

            if ($oOrder->load($aRow['OXID'])) {
                $oData = $this->_getContainer()->getClient()->{$sClientFunction}($oOrder);
                $aResponses[$aRow['OXORDERNR']] = $oData;
            }
        }

        return $aResponses;
    }