code: protected void generateFileTypeDetectionScript(String basename) {
  		final CharSequence scriptContent = getFileTypeDetectionScript();
  		if (scriptContent != null) {
  			final String textualContent = scriptContent.toString();
  			if (!Strings.isEmpty(textualContent)) {
  				final byte[] bytes = textualContent.getBytes();
  				for (final String output : getOutputs()) {
  					final File directory = new File(output, FTDETECT_FOLDER).getAbsoluteFile();
  					try {
  						final File outputFile = new File(directory, basename);
  						outputFile.getParentFile().mkdirs();
  						Files.write(Paths.get(outputFile.getAbsolutePath()), bytes);
  					} catch (IOException e) {
  						throw new RuntimeException(e);
  					}
  				}
  			}
  		}
  	}
docs: Generate the script for detecting the SARL files.
  
  @param basename the name of the file to create.
  @see #getFileTypeDetectionScript()