add comment in function: switchContext in Helper.java