public static Map<String, Properties> getSubsections(Properties properties) {
		Map<String, Properties> retval = new HashMap<String, Properties>();
		for (Object keyObj : properties.keySet()) {
			String key = (String) keyObj;
			if (key.indexOf(KEY_SEPARATOR) != -1) {
				String subsectionkey = key.substring(0, key.indexOf(KEY_SEPARATOR));
				String subkey = key.substring(subsectionkey.length() + 1);
				Properties props = retval.get(subsectionkey);
				if (props == null) {
					props = new Properties();
					retval.put(subsectionkey, props);
				}
				props.setProperty(subkey, properties.getProperty(key));
			}
		}
		return retval;
	}
public static Map < String , Properties > getSubsections ( Properties properties ) { Map < String , Properties > retval = new HashMap < String , Properties > ( ) ; for ( Object keyObj : properties . keySet ( ) ) { String key = ( String ) keyObj ; if ( key . indexOf ( KEY_SEPARATOR ) != - 1 ) { String subsectionkey = key . substring ( 0 , key . indexOf ( KEY_SEPARATOR ) ) ; String subkey = key . substring ( subsectionkey . length ( ) + 1 ) ; Properties props = retval . get ( subsectionkey ) ; if ( props == null ) { props = new Properties ( ) ; retval . put ( subsectionkey , props ) ; } props . setProperty ( subkey , properties . getProperty ( key ) ) ; } } return retval ; }
@param properties
@return