code: private <T> T xmlToObject(String xml, Class<T> type) throws JAXBException {
          JAXBContext jaxbContext = JAXBContext.newInstance(type);
          Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
  
          T obj = (T) jaxbUnmarshaller.unmarshal(new StringReader(xml));
          return obj;
      }
docs: TODO: This method is boilerplate code also contained in eu.seaclouds.platform.dashboard.util.ObjectMapperHelpers