code: public String marshalService(ServiceWrapper service) {
  
      Service xmlService = composeServiceFromServiceWrapper(service);
  
      StringWriter sw = new StringWriter();
      try {
        JAXBContext jaxbContext = JAXBContext.newInstance(Service.class);
        Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
  
        // output pretty printed
        jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
  
        jaxbMarshaller.marshal(xmlService, sw);
      } catch (PropertyException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (JAXBException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      return sw.toString();
  
    }
docs: Translate the ServiceWrapper into the wireline string. See
  {@link ServiceWrapper}
  
  @param service the instance of the ServiceWrapper
  @return the wireline string