public void focus(String expression) {
        focus(expression, FacesContext.getCurrentInstance().getViewRoot());
    }
Resolves the search expression, starting from the viewroot, and focus the resolved component.

@param expression The search expression.
primefaces/src/main/java/org/primefaces/PrimeFaces.java