code: public boolean canLockBecauseOfInactivity(CmsObject cms, CmsUser user) {
  
          return !user.isManaged()
              && !user.isWebuser()
              && !OpenCms.getDefaultUsers().isDefaultUser(user.getName())
              && !OpenCms.getRoleManager().hasRole(cms, user.getName(), CmsRole.ROOT_ADMIN);
      }
docs: Checks whether a user account can be locked because of inactivity.
  
  @param cms the CMS context
  @param user the user to check
  @return true if the user may be locked after being inactive for too long