code: public static void saveMapping(final Writer out,
                                     final DSLMapping mapping) throws IOException {
          for (DSLMappingEntry dslMappingEntry : mapping.getEntries()) {
              out.write(dslMappingEntry.toString());
              out.write("\n");
          }
      }
docs: Saves the given mapping into a DSL mapping file
  
  @param out
  @param mapping
  @throws IOException