/** * @param string $applicationIdentifier * @return ApplicationLocalized */ public static function buildLocalizedApplicationByIdentifier($applicationIdentifier) { $applicationName = CacheApplicationTool::getValue('applicationNameByIdentifier', $applicationIdentifier); if ( is_null($applicationName) ) { $localizedApplication = ApplicationLocalized::getLocalizedApplicationByIdentifier($applicationIdentifier); if ( $localizedApplication instanceof ApplicationLocalized ) { self::buildCache($localizedApplication); return $localizedApplication; } else { return null; } } else { return self::buildLocalizedApplication($applicationName); } }