class FlashCapability {

    public static Flash toFlash(String code) {
        Flash flash = CODE_TO_FLASH.forward().get(code);
        if (flash == null) {
            return Flash.OFF;
        }

        return flash;
    }

}