public Object getValue (HashMap<String,HashMap<String,Object>> map, String mainKey, String nodeKey) {
	    // do mainKey exist?
	    if(!map.containsKey(mainKey)) {
	        return false;
	    }
        HashMap<String,Object> obj = map.get(mainKey);
        if(!obj.containsKey(nodeKey)) {
            return false;
        }
        Object value = obj.get(nodeKey);
        
        // Null check
        if(value == null) {
            value = false;
        }
        
	    return value;
	}