public static String normalizeRegionName(final String regionName) {
    if (regionName == null || regionName.length() == 0) {
      return EMPTY_VALUE;
    }

    char[] resultName = new char[regionName.length() + 1];
    boolean changed = false;
    boolean isPrevCharSlash = false;
    int startIndex;

    if (regionName.charAt(0) != SEPARATOR_CHAR) {
      changed = true;
      startIndex = 0;
    } else {
      isPrevCharSlash = true;
      startIndex = 1;
    }

    resultName[0] = SEPARATOR_CHAR;
    int resultLength = 1;

    // Replace all more than one '/'s with a single '/'
    for (int index = startIndex; index < regionName.length(); ++index) {
      char currChar = regionName.charAt(index);
      if (currChar == SEPARATOR_CHAR) {
        if (isPrevCharSlash) {
          changed = true;
          continue;
        }
        isPrevCharSlash = true;
      } else {
        isPrevCharSlash = false;
      }
      resultName[resultLength++] = currChar;
    }

    // Remove any trailing slash
    if (resultName[resultLength - 1] == SEPARATOR_CHAR) {
      --resultLength;
      changed = true;
    }

    if (changed) {
      return new String(resultName, 0, resultLength);
    } else {
      return regionName;
    }
  }
Clear all the statically cached information.
geode-dunit/src/main/java/org/apache/geode/security/templates/XmlAuthorization.java