fix the template of java sender