@SuppressWarnings("rawtypes")
	public static void printMap(Map map, int depth)
    {
        final Iterator i = map.keySet().iterator();
        Object key = null;
        for (int k = 0; k < depth; k++)
            System.out.print("  ");
        System.out.println("Dictionary:");
        while (i.hasNext() && (key = i.next()) != null)
        {
            for (int k = 0; k < depth; k++)
                System.out.print("  ");
            System.out.print("(K) ");
            print(key, depth);
            Object val = map.get(key);
            for (int k = 0; k < depth; k++)
                System.out.print("  ");
            System.out.print("(V) ");
            print(val, depth);
        }
    }