private String checkForTopLevelRealm(String realm){
  if (StringUtils.isBlank(realm)) {
    return null;
  }
  if (realm.equalsIgnoreCase(TOP_LEVEL_REALM)) {
    return FORWARD_SLASH;
  }
 else {
    return realm;
  }
}

private String checkForTopLevelRealm ( String realm ) { if ( StringUtils . isBlank ( realm ) ) { return null ; } if ( realm . equalsIgnoreCase ( TOP_LEVEL_REALM ) ) { return FORWARD_SLASH ; } else { return realm ; } }
maps distinguished realm name to / for top level realm ; returns realm if not top level realm
