static ErrorCode ValueOfErrorCode(TranslatorOutputType type, String value) { if (type == TranslatorOutputType.StandardXml) { return TranslatorStandardTags.ValueOfErrorCode(value); } else { return TranslatorSimpleTags.ValueOfErrorCode(value); } }