@Override public Object decode(Response response, Type type) throws IOException { Response.Body body = response.body(); if (body == null) { return null; } if (String.class.equals(type)) { return Util.toString(body.asReader()); } throw new DecodeException(format("%s is not a type supported by this decoder.", type)); }