public void encodeJavaScriptCustom(FacesContext facesContext, UIComponent uiComponent) throws IOException {
ResponseWriter responseWriter = facesContext.getResponseWriter();
Popover popover = (Popover) uiComponent;
ClientComponent clientComponent = (ClientComponent) uiComponent;
String clientVarName = ComponentUtil.getClientVarName(facesContext, clientComponent);
String clientKey = clientComponent.getClientKey();
if (clientKey == null) {
clientKey = clientVarName;
}