return createClientFunction(facesContext, converter, clientScriptService);
}
private LibraryScriptFunction createClientFunction(FacesContext facesContext, FacesObjectDescriptor descriptor,
ClientScriptService clientScriptService) throws ScriptNotFoundException {
LibraryFunction script = clientScriptService.getScript(facesContext, descriptor.getImplementationClass());
return new LibraryScriptFunction(script, descriptor.getMessage(), descriptor.getAdditionalParameters());
}