You put your type parameters in the wrong place. It is between the HashMap and () : -
config1 = new HashMap<String,ArrayList<HashMap<String,String>>>();
It is also a good idea to have more general types, rather than specific types in the declaration, and even in generic type parameters . Thus, you should use Map instead of HashMap in the declaration, and List instead of ArrayList in type parameter : -
And in fact, you do not need to break the declaration and initialization in two lines. Just have them on one line. It looks cleaner. So you can change two lines: -
protected Map<String, List<Map<String,String>>> config1 = new HashMap<String, List<Map<String,String>>>();
source share