code: private static void checkDuplication(String[] list, String orig) throws DevFailed {
          Vector<String> dupli = new Vector<String>();
          //	For each string
          for (int i = 0 ; i<list.length ; i++) {
              String str = list[i];
              //	Check if it is a duplication
              for (int j = i + 1 ; j<list.length ; j++) {
                  if (list[j].equalsIgnoreCase(str))
                      //	Check if not already found
                      if (dupli.indexOf(str)<0)
                          dupli.add(str);
              }
          }
  
          if (dupli.size()>0) {
              String message =
                      "Several times the same attribute in required attribute list: ";
              for (int i = 0 ; i<dupli.size() ; i++) {
                  message += dupli.get(i);
                  if (i<dupli.size() - 1) {
                      message += ", ";
                  }
              }
              Except.throw_exception("",
                      message, orig);
          }
      }
docs: ===============================================================