private static boolean accessField(Gson gson, String name, boolean defaultValue) {
      try {
        Field field = Gson.class.getDeclaredField(name);
        field.setAccessible(true);
        return (Boolean) field.get(gson);
      } catch (Exception ex) {
        return defaultValue;
      }
    }
Handled media types
@return media types
gson/src/org/immutables/gson/stream/GsonMessageBodyProvider.java