code: public T deserialize(String xml) {
          if (xml == null || xml.equals("")) {
              throw new RuntimeException("XML cannot be null or empty");
          } else {
              return deserialize(new StreamSource(new StringReader(xml)));
          }
      }
docs: De-serializes XML into an object structure.
  
  @param xml to de-serialize
  @return de-serialized object