public List<String> getSectionNames() {
		List<String> sections = new ArrayList<String>();

		for (Map.Entry<String, String> entry : this.entrySet()) {
			String key = entry.getKey();
			int pos = key.indexOf('.');
			if (pos > 0)
				key = key.substring(0, pos);

			// Perform case sensitive search
			boolean found = false;
			for (String section : sections) {
				if (section.equalsIgnoreCase(key)) {
					found = true;
					break;
				}
			}

			if (!found)
				sections.add(key);
		}

		return sections;
	}
public List < String > getSectionNames ( ) { List < String > sections = new ArrayList < String > ( ) ; for ( Map . Entry < String , String > entry : this . entrySet ( ) ) { String key = entry . getKey ( ) ; int pos = key . indexOf ( '.' ) ; if ( pos > 0 ) key = key . substring ( 0 , pos ) ; boolean found = false ; for ( String section : sections ) { if ( section . equalsIgnoreCase ( key ) ) { found = true ; break ; } } if ( ! found ) sections . add ( key ) ; } return sections ; }
Gets a list with all 1st level section names.

@return a list of section names stored in this ConfigMap.