docs: @SuppressWarnings("unchecked")
      public UserInfo getUserInfo(String username) throws Exception {
  
          String pwdCredential = getUserCredentials(username);
  
          if (pwdCredential == null) {
              return null;
          }
  
          pwdCredential = convertCredentialLdapToJetty(pwdCredential);
          pwdCredential = decodeBase64EncodedPwd(pwdCredential);
          Credential credential = Credential.getCredential(pwdCredential);
          List roles = getUserRoles(_rootContext, username);
  
          return new UserInfo(username, credential, roles);
      }