docs: public static <T> T unmarshal(Unmarshaller self, String xml, Class<T> declaredType) throws JAXBException {
          StringReader sr = new StringReader(xml);
          return declaredType.cast(self.unmarshal(sr));
      }