Refactored Comparator name code to encapsulate logic inside
ComparatorJniCallback