public static Hue getHue()

in s1e1-totally-lit/hue-lifx-java/src/main/java/com/awslabs/iot_all_the_things/special_projects_edition/totally_lit/hue/HueShared.java [25:32]


    public static Hue getHue() throws ExecutionException, InterruptedException {
        if (!optionalHue.isPresent()) {
            log.info("Discovering Hue bridge, this may take a moment...");
            optionalHue = Optional.of(new Hue(getHueBridgeIp(), username));
        }

        return optionalHue.get();
    }