@Override
    public void setName(String name) {
        if (!StringUtils.hasText(name)) {
            throw new IllegalArgumentException("Name cannot be null/empty.");
        }
        this.name = name;
    }
{@code -1} indicating that no version property should be set on the cookie.
web/src/main/java/org/apache/shiro/web/servlet/SimpleCookie.java