protected function formatConditions($entityClass, ConditionsInterface $conditions)
    {
        $rendered = array();
        foreach ($conditions->getConditions() as $attribute => $condition) {
            $rendered[$attribute] = array(
                'ComparisonOperator' => $condition['operator'],
            );
            if (isset($condition['values'])) {
                $rendered[$attribute]['AttributeValueList'] = $this->formatAttributes($entityClass, $condition['values']);
            }
        }
        return $rendered;
    }