Java object attribute map sorting example