add getViewRoot function in JSFUtils.java