Modified java XPT template