Ensures simple initializing of endpoint global data.
Had been double-wrapping return statements.
Changed assignment statements: can no longer rely on try catch python method to determine emitted code is valid.
Had been placing ; after a return statement, which java was not happy about: 'unreachable code'.
No way to throw backoutexception unless initializing global variables.  With no way to throw error, got type checking error on catch statement.  Turning into generic exception gets rid of this.
Added method for making endpoint calls.