Issue #3: Deal with sendMessageToJava not being able to directly return a value any more.