private ContactsModelWrapper transform(List<Map<String, Object>> rawContacts) {
    StringWriter stringWriter = new StringWriter();
    try (JCardWriter writer = new JCardWriter(stringWriter)) {
      for (Map<String, Object> rawContact : rawContacts) {
        TransformResult<VCard> result = transformerService.transform(VCard.class, rawContact);
        if (result.hasProblems()) {
          // discard
          // FIXME log problem
          continue;
        }
        writer.write(result.getTransformed());
      }
    } catch (IOException e) {
      // TODO log
      e.printStackTrace();
      return new ContactsModelWrapper("");
    }
    return new ContactsModelWrapper(stringWriter.toString());
  }
Exports Microsoft contacts using the Graph API.
extensions/data-transfer/portability-data-transfer-microsoft/src/main/java/org/datatransferproject/transfer/microsoft/contacts/MicrosoftContactsExporter.java