protected function getAttributeByNames($attrNames = array())
    {
        if (empty($attrNames)) {
            return $this->arrAttributes;
        }

        $result = array();
        foreach ($attrNames as $attributeName) {
            $result[$attributeName] = $this->arrAttributes[$attributeName];
        }

        return $result;
    }