class MapUtil {

    public static Map<String, String> load( Reader reader ) throws IOException
    {
        Properties props = new Properties();
        props.load( reader );
        //noinspection unchecked
        return new HashMap<>( (Map) props );
    }

}