I am calculating the rank based on the bestPercentage in Document. Each document is having bestPercentage filed, based on key in HashMap multiple document stored in Hashmap. The