code: public boolean isUserTempDisabled(String username) {
  
          Set<CmsUserData> data = TEMP_DISABLED_USER.get(username);
          if (data == null) {
              return false;
          }
          for (CmsUserData userData : data) {
              if (!userData.isDisabled()) {
                  data.remove(userData);
              }
          }
          if (data.size() > 0) {
              TEMP_DISABLED_USER.put(username, data);
              return true;
          } else {
              TEMP_DISABLED_USER.remove(username);
              return false;
          }
      }
docs: Checks if given user it temporarily locked.<p>
  
  @param username to check
  @return true if user is locked