code: function exportApplication(application) {
    checkForErrors(application);
    const formattedApplication = setUpApplicationStructure(application);
    writeConfigFile(formattedApplication);
    return formattedApplication;
  }
docs: Exports JDL a application to a JDL file in the current directory.
  @param application, the JDL application to export.
  @return the exported application in its final form.