private LockOutFlag getUnExpiredLockout(LockOutFlag flag) {
        if (flag != null) {
            Date curDate = new Date();
            if (flag.getEndTime() != null && curDate.after(flag.getEndTime())) {
                // Remove expired lockout entry
                lockOutCache.remove(flag.getUsername());
                provider.unsetDisabledStatus(flag.getUsername());
                return null;
            }
        }
        return flag;
    }
Check if lockout flag is expired.

@param flag
           the flag
xmppserver/src/main/java/org/jivesoftware/openfire/lockout/LockOutManager.java