code: public Object read(InputStream is, Class type, MediaType mediaType)
              throws IOException {
          XStream xstream = getXStreamInstance(mediaType);
          if (xstream != null) {
              return xstream.fromXML(is);
          } else {
              throw new IllegalArgumentException("Content-type: "
                      + mediaType.getType() + " is currently not supported for "
                      + type.getName());
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.netflix.discovery.provider.ISerializer#read(java.io.InputStream,
  java.lang.Class, javax.ws.rs.core.MediaType)