refined java template