java.lang.string nie można rzucić na java.util.map
//you should be more explicit with your declaration of array
public static Map<String, Map<String, Map<String, Map<String, String>>>> array = new HashMap<String, Map<String, Map<String, Map<String, String>>>>();
Ben mahmoud Nour