code: private String getSimpleUsername(String username) {
          int lastSlash = username.lastIndexOf('\\');
          if (lastSlash > -1) {
              username = username.substring(lastSlash + 1);
          }
  
          return username;
      }
docs: Returns a simple username without any domain prefixes.
  
  @param username
  @return a simple username