code: @Override
      public String getSerializedData(String wsagSerialized) throws ParserException{
              try {
                  JAXBContext jaxbContext = JAXBContext.newInstance(Agreement.class);
                  Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
                  Agreement agreement = (Agreement)jaxbUnmarshaller.unmarshal(new StringReader(wsagSerialized));
                  String result = mapper.writeValueAsString(agreement);
                  return result;
              } catch (JsonProcessingException e) {
                  throw new ParserException(e);
              } catch (JAXBException e) {
                  throw new ParserException(e);
              }
              
      }
docs: /*
  getSerializedData receives in wsagSerialized the information in wsag standard as it was generated with the
  getWsagAsSerializedData method and returns it in json