sync java code with NSDictionary in getAllDocs