/**
  * {@inheritdoc}
  */
 public function load($resource, $locale, $domain = 'messages')
 {
     $catalogue = new MessageCatalogue($locale);
     $transUnits = $this->storage->getTransUnitsByLocaleAndDomain($locale, $domain);
     foreach ($transUnits as $transUnit) {
         foreach ($transUnit['translations'] as $translation) {
             if ($translation['locale'] == $locale) {
                 $catalogue->set($transUnit['key'], $translation['content'], $domain);
             }
         }
     }
     return $catalogue;
 }