private void squeezeFolder(Path newFolder) throws IOException {
		try(Stream<Path> pathStream = Files.list(newFolder);){
			List<Path> extractedFiles = pathStream.collect(Collectors.toList());
			if (extractedFiles.size() == 1) {
				Path path = extractedFiles.get(0);
				if (Files.isDirectory(path)) {
					Path tempDirectory = Files.createTempDirectory("TemplateTempDir");
					Files.move(path, tempDirectory, StandardCopyOption.REPLACE_EXISTING);
					Files.move(tempDirectory, newFolder, StandardCopyOption.REPLACE_EXISTING);
					IOHelper.deleteDirectory(tempDirectory);
				}
			}
		}
	}
Depending on the location of the template downloads it or copies the file. If
it is a zip-archive it should be extracted. During the process no existing
files should be overwritten.

@param targetDir
@throws Exception
src/main/java/com/kodedu/service/TemplateService.java