code: @SuppressWarnings("unchecked")
      public <T> T fromXml(String xml) {
          try {
              StringReader reader = new StringReader(xml);
              return (T) createUnmarshaller().unmarshal(reader);
          } catch (JAXBException e) {
              throw new RuntimeException(e);
          }
      }
docs: Xml->Java Object.