public function findPublishedVersion($contentId, $language)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);

        $qa->match(array('contentId' => $contentId));

        return $this->singleHydrateAggregateQuery($qa);
    }
public function findPublishedVersion($contentId, $language)
    {
        $qa = $this->createAggregationQueryWithLanguageAndPublished($language);

        $qa->match(array('contentId' => $contentId));

        return $this->singleHydrateAggregateQuery($qa);
    }
@param string $contentId
@param string $language

@return ContentInterface