src/main/java/com/xceptance/neodymium/util/YamlProperties.java
/**
     * Deal with maps
     *
     * @param map
     *            the map of data
     * @param state
     *            the current state
     */
Deal with maps
@param map
the map of data
@param state
the current state
Deal with maps @param map the map of data @param state the current state
@SuppressWarnings("unchecked")
    private void map(final Map<String, Object> map, final Deque<String> state)
    {
        for (final String key : map.keySet())
        {
            state.push(key);
            final Object value = map.get(key);
            if (value instanceof Map)
            {
                map((Map<String, Object>) value, state);
            }
            else if (value instanceof List)
            {
                list((List<Object>) value, state);
            }
            else
            {
                handleTypes(value, state);
            }
            state.pop();
        }
    }
@ SuppressWarnings ( "unchecked" ) private void map ( final Map < String , Object > map , final Deque < String > state ) { for ( final String key : map . keySet ( ) ) { state . push ( key ) ; final Object value = map . get ( key ) ; if ( value instanceof Map ) { map ( ( Map < String , Object > ) value , state ) ; } else if ( value instanceof List ) { list ( ( List < Object > ) value , state ) ; } else { handleTypes ( value , state ) ; } state . pop ( ) ; } }
Deal with maps
 @param map
            the map of data
 @param state
            the current state
Deal with maps @param map the map of data @param state the current state