@CanIgnoreReturnValue
    public OneTimeTokenAccount assignIdIfNecessary() {
        if (getId() <= 0) {
            setId(System.currentTimeMillis());
        }
        return this;
    }
Assign id if undefined.

@return the registered service
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/OneTimeTokenAccount.java