I have a property file with key/value pairs that looks like below:

```
#state/city/counties

fl.regionA.counties=abc,def,ghi,jkl
fl.regionB.counties=xyz,qrs,tuv,wxy

```

The property file is loaded via code snippet below:

```
@Configuration
public class Config {

@Bean
public static PropertyPlaceholderConfigurer properties(){
...
}

```

How can I load the a list of StateRegionMappings where StateRegionMapping:

```
public class StateRegionMapping{
   private List<String> counties;
   private String state;
   private String region;

   ...

}

```

Update 5/23/2017:

My other alternate key/value structure is like this:

```
states.config[0].state=fl
states.config[0].name=regionA
states.config[0].counties=abc,def,ghi,jkl
states.config[1].state=fl
states.config[1].name=regionB
states.config[1].counties=xyz,qrs,tuv,wxy

```