code: public T deserialize(InputStream stream) {
          if (stream == null) {
              throw new RuntimeException("Stream cannot be null");
          } else {
              return deserialize(new StreamSource(stream));
          }
      }
docs: De-serializes XML from an InputStream into an object structure.
  
  @param stream containing XML to de-serialize
  @return de-serialized object