code: public static void saveRelationsFileInto(
  			File targetFile,
  			FileDefinition relationsFile,
  			boolean writeComments,
  			String lineSeparator )
  	throws IOException {
  
  		String s = writeConfigurationFile( relationsFile, writeComments, lineSeparator );
  		Utils.copyStream( new ByteArrayInputStream( s.getBytes( StandardCharsets.UTF_8 )), targetFile );
  	}
docs: Saves the model into another file.
  @param targetFile the target file (may not exist)
  @param relationsFile the relations file
  @param writeComments true to write comments
  @param lineSeparator the line separator (if null, the OS' one is used)
  @throws IOException if the file could not be saved