@staticmethod
    def is_java_available():
        result = Utils.cmd("which java")
        if result['ExitCode'] == 0:
            result = Utils.cmd("java -version 2>&1 | head -n 1")
            return result['StdOut'] in "1.8."
        else:
            return False

    ##
    ## DOCKER OPERATIONS:
    ##
dataset/ETHPy150Open radekg/mesos-toolbox/lib/utils.py/Utils.is_java_available/swapped operands of `in`