private String decodeAuthCookieSafely(Cookie cookie) {
        if (cookie == null) {
            return null;
        }
        String decodedCookieValue = null;
        try {
            decodedCookieValue = Base64Utils.decode(cookie.getValue());
        } catch (Base64Exception e) {
            LOGGER.log(Level.WARNING, e.getMessage());
        }
        return decodedCookieValue;
    }