add java debug switch for use in velocity