public String toString() { String result = "AgillaTSReqMsg:\n"; result += "\top = 0x" + Integer.toHexString(op) + " (" + getString(op) + ")\n"; result += "\tdest = " + dest + "\n"; result += "\treply = " + reply + "\n\ttemplate = "; if (template == null) result += template; else result += template.toString().replaceAll("\n", "\n\t"); return result; }