code: def clear_java_home():
      
      if os.environ.get("BCBIO_JAVA_HOME"):
          test_cmd = os.path.join(os.environ["BCBIO_JAVA_HOME"], "bin", "java")
          if os.path.exists(test_cmd):
              return "export JAVA_HOME=%s" % os.environ["BCBIO_JAVA_HOME"]
      return "unset JAVA_HOME"
docs: Clear JAVA_HOME environment or reset to BCBIO_JAVA_HOME.
  
      Avoids accidental java injection but respects custom BCBIO_JAVA_HOME
      command.