change to java template