public static <K,V extends Comparable<V>> Entry<K,V> getTop(Map<K,V> map) {
		Entry<K, V> topEntry = null;
		for (Entry<K, V> entry : map.entrySet()) {
			if (entry.getValue()==null) {
				continue;
			}
			if (topEntry != null) {
				if (entry.getValue().compareTo(topEntry.getValue()) < 0) {
					topEntry = entry;
				}
			} else {
				topEntry = entry;
			}
		}
		return topEntry;
	}