For java example