private LockOutFlag getUserLockOut(String username) {
        if (provider.shouldNotBeCached()) {
            return provider.getDisabledStatus(username);
        }
        LockOutFlag flag = lockOutCache.get(username);
        // If ID wan't found in cache, load it up and put it there.
        if (flag == null) {
            synchronized (userBaseMutex.intern(XMPPServer.getInstance().createJID(username, null))) {
                flag = lockOutCache.get(username);
                // If group wan't found in cache, load it up and put it there.
                if (flag == null) {
                    flag = provider.getDisabledStatus(username);
                    if (flag != null) lockOutCache.put(username, flag);
                }
            }
        }
        return flag;
    }
Gets the user lock out.

@param username
           the username
@return the user lock out
xmppserver/src/main/java/org/jivesoftware/openfire/lockout/LockOutManager.java