updated pom.xml and changed Map initializer from constructor to field level