sample code to parse requestedItems map to java map