protected static String getSectionName(String line) {
        String s = StringUtils.clean(line);
        if (isSectionHeader(s)) {
            return cleanName(s.substring(1, s.length() - 1));
        }
        return null;
    }
Loads the INI-formatted text backed by the given Scanner.  This implementation will close the
scanner after it has finished loading.

@param scanner the {@code Scanner} from which to read the INI-formatted text
config/core/src/main/java/org/apache/shiro/config/Ini.java