Fixed generateJavaCall to add commas if there are multiple arguments to a given function