code: def _locate_java(self, s):
          '''If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,
          return s.
          '''
          if 'JAVA_HOME' in self.buildozer.environ:
              return join(self.buildozer.environ['JAVA_HOME'], 'bin', s)
          else:
              return f _locate_java(self, s):
          '''If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,
          return s.
          '''
          if 'JAVA_HOME' in self.buildozer.environ:
              return join(self.buildozer.environ['JAVA_HOME'], 'bin', s)
          else:
              return s
docs: If JAVA_HOME is in the environ, return $JAVA_HOME/bin/s. Otherwise,
          return s.