public FileEntry prepareNewEntry(User user, String path, String fileName, String name, String url,
	                                 ScriptHandler scriptHandler, boolean libAndResource, String options) {
		if (scriptHandler instanceof ProjectHandler) {
			scriptHandler.prepareScriptEnv(user, path, fileName, name, url, libAndResource,
				loadTemplate(user, getScriptHandler("groovy"), url, name, options));
			return null;
		}
		path = PathUtils.join(path, fileName);
		FileEntry fileEntry = new FileEntry();
		fileEntry.setPath(path);
		fileEntry.setContent(loadTemplate(user, scriptHandler, url, name, options));
		if (!"http://please_modify_this.com".equals(url)) {
			fileEntry.setProperties(buildMap("targetHosts", UrlUtils.getHost(url)));
		} else {
			fileEntry.setProperties(new HashMap<>());
		}
		return fileEntry;
	}
Create new FileEntry.

@param user           user
@param path           base path path
@param fileName       fileName
@param name           name
@param url            url
@param scriptHandler  script handler
@param libAndResource true if lib and resources should be created
@return created file entry. main test file if it's the project creation.
ngrinder-controller/src/main/java/org/ngrinder/script/service/FileEntryService.java