Added java template customization