code: public boolean writeToFile(String defaultFilePath, String realFilePath) {
          try {
              Files.copy(Paths.get(defaultFilePath), Paths.get(realFilePath), StandardCopyOption.REPLACE_EXISTING);
              return true;
          } catch (IOException e) {
              error("Unable to write to copy Properties-File", e);
              return false;
          }
      }
docs: Writes default file to real file
  The default file would be a file that can be packaged along with the code, from which a real file (say a
  properties file for example) can be loaded. This is useful because there are files (like property files0 that
  cannot be shipped with the package and have to be created at runtime. To still be able to fill these files, you
  can create a default file (usually txt) from which the content, as mentioned above, can then be loaded into the
  real file.
  
  @param defaultFilePath path to default file (or where it should be created)
  @param realFilePath path to real file (that should be filled with content of default file)
  @return true if operation has succeeded, else false