code: function exportApplications(applications) {
    if (!applications) {
      throw new Error('Applications have to be passed to be exported.');
    }
    return Object.values(applications).map(application => {
      checkForErrors(application);
      application = setUpApplicationStructure(application);
      writeApplicationFileForMultipleApplications(application);
      return application;
    });
  }
docs: Exports JDL applications to JDL files in separate folders (based on application base names).
  @param applications the applications to export (key: application name, value: a concrete implem of
  AbstractJDLApplication).
  @return object[] exported applications in their final form.