public function addResource($format, $resource, $locale, $domain = null)
    {
        $this->standardResources[] = array(
            'format' => $format,
            'path' => $resource,
            'locale' => $locale,
            'domain' => $domain === null ? 'messages' : $domain,
        );
    }