package com.ibm.watson.developer_cloud.language_translation.v2.model;

public enum Language {

  ARABIC, ENGLISH, SPANISH, FRENCH, ITALIAN, PORTUGESE,
  AR, EN, ES, FR, IT, PT;
  
  public String toString() {
    if (super.toString().length() > 2) {
      switch (this) {
        case ARABIC: return "ar";
        case ENGLISH: return "en";
        case SPANISH: return "es";
        case FRENCH: return "fr";
        case ITALIAN: return "it";
        case PORTUGESE: return "pt";
      }
    } else {
      return super.toString().toLowerCase();
    }
    return "";
  }

}

@@ -92,16 +92,18 @@
  %7B%0A%0A
+  
   ARABIC
 , EN
@@ -102,85 +102,35 @@
 ABIC
-, ENGLISH, SPANISH, FRENCH, ITALIAN, PORTUGESE,%0A  AR, EN, ES, FR, IT, PT;%0A  %0A
+ %7B%0A        @Override%0A      
   pu
@@ -162,87 +162,120 @@
     
-if (super.toString().length() %3E 2) %7B%0A      switch (this) %7B%0A        case ARABIC:
+        return %22ar%22;%0A        %7D%0A    %7D, ENGLISH %7B%0A        @Override%0A        public String toString() %7B%0A           
  ret
@@ -271,34 +271,34 @@
         return %22
-ar
+en
 %22;%0A        case 
@@ -296,125 +296,300 @@
     
-case ENGLISH: return %22en%22;%0A        case SPANISH: return %22es%22;%0A        case FRENCH: return %22fr%22;%0A        case ITALIAN:
+%7D%0A    %7D, SPANISH %7B%0A        @Override%0A        public String toString() %7B%0A            return %22es%22;%0A        %7D%0A    %7D, FRENCH %7B%0A        @Override%0A        public String toString() %7B%0A            return %22fr%22;%0A        %7D%0A    %7D, ITALIAN %7B%0A        @Override%0A        public String toString() %7B%0A           
  ret
@@ -610,23 +610,94 @@
     
-case
+%7D%0A    %7D,
  PORTUG
+U
 ESE
-:
+ %7B%0A        @Override%0A        public String toString() %7B%0A           
  ret
@@ -716,74 +716,69 @@
     
+  
 %7D%0A    %7D
- else %7B%0A      return super.toString().toLowerCase();
+;%0A%0A    @Override%0A    public String toString() %7B
 %0A    
-%7D%0A
     
@@ -790,13 +790,14 @@
 n %22%22;%0A  
+  
 %7D
-%0A
 %0A%7D%0A

Update Language.java