public static function getAccountSideSignFromLanguage($value) {
        switch (strtolower($value)) {
            case strtolower(StaticEb::$accountsideDebitSign):
            case strtolower(StaticEb::formatAccountside('D')):
                return 'D';
            case strtolower(StaticEb::$accountsideCreditSign):
            case strtolower(StaticEb::formatAccountside('C')):
                return 'C';
            default:
                throw new Exception(\Yii::t('common/staticeb', 'Cannot determine accoundside sign from  value "{value}". Valid values: '
                        . StaticEb::$accountsideDebitSign . ', ' . StaticEb::formatAccountside('D') . ', '
                        . StaticEb::$accountsideCreditSign . ', ' . StaticEb::formatAccountside('C'), [ 'value' => $value]
                ));
        }
    }