code: @Override
      public String getWsagAsSerializedData(String serializedData) throws ParserException {
          StringWriter stringWriter = new StringWriter();
          try {
              Template template = getWsagObject(serializedData);
              JAXBContext jaxbContext = JAXBContext.newInstance(Template.class);
              Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
              jaxbMarshaller.setEventHandler(new ValidationHandler());
              jaxbMarshaller.marshal(template, stringWriter);
          } catch (JAXBException e) {
              throw new ParserException(e);
          }
          return stringWriter.toString();
      }
docs: /*
  getWsagAsSerializedData receives in serializedData json
  must return information following and xml in wsag standard.