code: public Integer getInteger(String key) {
          try {
              return getValue(Integer.class, key);
          } catch (ClassCastException e) {
              String value = getString(key);
  
              return Integer.parseInt(value.split(",")[0]);
          }
      }
docs: Gets integer.
  
  @param key the key
  @return the integer