code: @Override
      public void saveSourceToFile(Source source) {
          Origin origin = source.getOrigin();
          if (!(origin instanceof FileOrigin)) {
              throw new IllegalArgumentException("No a file origin: " + origin);
          }
  
          File file = ((FileOrigin) origin).getFile();
          File dir = file.getParentFile();
          if (!dir.exists()) {
              dir.mkdirs();
          } else {
              if (!dir.isDirectory()) {
                  throw new RuntimeException("Can not save file, '" + dir + "' is not a valid directory.");
              }
          }
          List<String> lines = new ArrayList<String>();
          lines.add(Source.TRIPLE_DASHED_LINE);
          //for(Map.Entry<String, Object> en: source.getMeta().entrySet()){
          //
          //}
          String line = yaml.dumpAsMap(source.getMeta());
          lines.add(line);
          lines.add(Source.TRIPLE_DASHED_LINE);
  
          lines.add(source.getContent());
  
          try {
              FileUtils.writeLines(file, "UTF-8", lines);
          } catch (IOException e) {
              throw new RuntimeException("Write file exception", e);
          }
      }
docs: /* (non-Javadoc)
  @see org.opoo.press.SourceManager#saveSourceToFile(org.opoo.press.Source)