def METHOD_NAME(self, spec, prefix):
    mkdirp(prefix.bin)
    # The list of files to install varies with release...
    # ... but skip the spack-build-{env}out.txt files.
    files = [x for x in glob.glob("*") if not re.match("^spack-", x)]
    for f in files:
        METHOD_NAME(f, prefix.bin)
    # Set up a helper script to call java on the jar file,
    # explicitly codes the path for java and the jar file.
    script_sh = join_path(
        os.path.dirname(__file__),
        "picard_with_parameters.sh" if "+parameters" in spec else "picard.sh",
    )
    script = prefix.bin.picard
    METHOD_NAME(script_sh, script)
    set_executable(script)
    # Munge the helper script to explicitly point to java and the
    # jar file.
    java = self.spec["java"].prefix.bin.java
    kwargs = {"ignore_absent": False, "backup": False, "string": False}
    filter_file("^java", java, script, **kwargs)
    filter_file("picard.jar", join_path(prefix.bin, "picard.jar"), script, **kwargs)