converting nested literal maps for java compatibility