impl of get_current_call borrowed from rJava using contexts